Forum Discussion

DerekPipal's avatar
DerekPipal
Qrew Member
5 years ago

Webhooks to Third Party App

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
------------------------------
  • AustinK's avatar
    AustinK
    Qrew Commander
    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
    • DerekPipal's avatar
      DerekPipal
      Qrew Member
      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
      ------------------------------