Select to view content in your preferred language

FME webhook not being triggered by survey submission

784
3
08-26-2024 09:38 PM
j-bromp
Frequent Contributor

Hello,

I am testing an FME Flow automation which involves a webhook trigger listening to survey123 submissions. When I submit a survey the webhook is not being triggered and no payload is being sent to FME. 

I have tested the webhook using postman and sent a dummy payload which worked, i can view that in the logs in FME but when submitted via survey123 nothing happens.

I have added the webhook in survey123, ticked all trigger events and event data options, saved, and updated my survey on my device before submitting but no bueno.

Any help would be much appreciated.

0 Kudos
3 Replies
DuncanC
Frequent Contributor

I would try using the normal AGOL webhooks not the survey123 specific webhooks.  You can find it by going to the item details, opening the REST interface webpage thing (push view in the URL section, bottom right of page), then admin (top right of page).  That will get you proper server side webhooks, not the silly client side thing Survey123 does.

0 Kudos
abureaux
MVP Frequent Contributor

If you are using the Field App, have you updated the survey? After adding a webhook, the survey needs an update (to add the web hook to the survey).

0 Kudos
JakeMatthys
Frequent Contributor

Sounds like you have all the steps covered.  We have webhooks setup on our S123 surveys that trigger FME automations.  It is a stable process that has been running with little issue for the past few years.

A few items to check (though you probably have already checked them already)

  1. Ensure that the FME Server Automation automation is running
  2. Copy the webhook URL from the FME Server Automation and paste it into the S123 Webhook Payload URL
  3. You can do some testing
    1. Add a logger to your FME automation, that can help expose the payload that is coming in
    2. In the S123 Webhook Trigger Events, turn on "Existing Record Edited" and manipulate an existing record, see if you can generate the webhook to fire in this way.
  4. The the FME Automation require any authentication?

Again, the process you described in the original post looks correct to me, no steps appear to be missing.  Maybe the list I provided will expose something that helps...

Good luck.

 - Jake

 

Tags (1)