Webhook: send full payload on update

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mattstarky
    Junior Member
    • Feb 2023
    • 1

    Webhook: send full payload on update

    Hi,

    I've been using webhooks recently to send the updated fields payload to an API I've built.

    I was wondering, it only send the updated fields in the payload (as designed), but would it be possible to send the full record with all fields in the payload when the webhook fires?

    I have looked through the forums for the word 'webhook' and didn't find any threads about this specifically, so thought it best to ask.

    Cheers
    MS

  • animax
    Senior Member
    • Jun 2018
    • 155

    #2
    I have the same problem... It's very annoying. I need the entire data set via webhook and not just the changed objects.
    Who can help?

    Comment

    • yuri
      Member
      • Mar 2014
      • 8440

      #3
      I can't fathom how this can be very annoying.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        You can utilize workflow's Send HTTP Request. Send any JSON to a needed endpoint on record update.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • animax
          Senior Member
          • Jun 2018
          • 155

          #5
          Hi Yuri, it works fine for me! Thank you, but i have one problem. I need a variable from a related entity. How can i write the variable in json?

          {
          "Benachrichtigungsmail": "{$Rueckrufe.benachrichtigungsmail}",
          "Status": "{$status}"
          }​
          This does not work. ("{$Rueckrufe.benachrichtigungsmail}")

          Comment

          • yuri
            Member
            • Mar 2014
            • 8440

            #6
            It's possible to use a formula variable as a payload (as of advanced pack v2.15). You can compose your payload object using object functions.
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            Working...