Hi all,
I'm having real issues testing a webhook (to send an email confirmation of user submission) from AGOL. Users can submit records to a HFL _results view via an bespoke API - only the API can see the _results HFL view.
A webhook is set on this HFL view and works, although it seems to take 10-20 minutes to trigger for unknown reasons.
So the API submission emails work but are a bit delayed, but OK I can deal with that.
Next issue - email notification should also be sent for submissions via the S123 app. This is where it gets confusing. It seems with only the webhook set on the _results HFL View, some submissions trigger the View's webhook and some don't. These ones are delayed by 4-6 hours if not more, and lead me to think there's some kind of synch check between the parent HFL and the HFL view, but I can't find any details about how this might be working (not to be confused with offline synch as that's disabled for all items).
and the next - OK, so let's put a webhook on the HFL and then that should trigger from S123 submissions (as that's what S123 is POSTing to right?), again, temperamental and delayed.
next.. even if it works a charm on both, then this update synch process might start generated 2 confirmation emails.
next... OK let's set the S123 website-side webhook. Now we're talking... that works almost instantly, but we still need the _results HFL view webhook to do emails for API submissions. This is likely going to cause this double-email with its weird synch/triggering process.
has anyone else felt my pain with these, any anecdotes, details, docs or interactions with support gurus from Esri who have shed light on this arcane webhook functionality?
Thanks for reading!
We use Survey123 for one-way submissions that generate emails without issue. Our workflow is:
If you are just using Survey123, you do not need to configure a webhook via the service REST API.
If you are not using Make / Power Automate, you can manually create a webhook via the survey123 website and put in a custom payload URL.
For both scenarios you do not need read access to the Hosted Feature Layer or a view. All the information will be in the payload.