Discussions

Expand all | Collapse all

Webhooks to Third Party App

  • 1.  Webhooks to Third Party App

    Posted 03-03-2020 16:00
    Hi,
    Trying to setup a webhook to a 3rd party app (called Discord) where everytime a new record is added in QB it pushes a message to Discord saying new product was added.  Below is screenshot of what I currently have setup (i've removed some info like token keys). I just don't know what to put in the message header for "key" and "value"


    ------------------------------
    Derek Pipal
    ------------------------------


  • 2.  RE: Webhooks to Third Party App

    Posted 03-03-2020 16:22
    It looks like you have it set up to send this to QuickBase as you have what QuickBase expects to see in your message body.

    I would take a look at the Discord help documentation on webhooks and see what Discord expects instead. One word of caution is that Discord prefers JSON, not XML.

    As far as the message header I think you would use "Content-Type" and then "application/json" respectively. You are going to want to make sure you are sending JSON though but you could try XML as well if you change the message header.

    https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks
    https://discordapp.com/developers/docs/resources/webhook


  • 3.  RE: Webhooks to Third Party App

    Posted 03-03-2020 19:27
    Thanks for this info. I changed everything you mention but now getting an error: {"message": "Cannot send an empty message", "code": 50006} I'm not sure where to update that.

    ------------------------------
    Derek Pipal
    ------------------------------