Select to view content in your preferred language

Webhook Tester using Survey123

124
1
02-02-2025 08:54 AM
vijaybadugu
Frequent Contributor

I was experimenting on Webhook tester post request. I made one webhook  using the test  website and configured it in webhook section, checked new survey submit and edit existing survey options with submitted data. I submitted a new record and it did not fire on the website. i did test couple of times to see the pattern of output. 

 

Please suggest on this 

0 Kudos
1 Reply
AdamMesser1
Regular Contributor

@vijaybadugu I'm not entirely sure what you are asking. However, I also recently wanted to test webhook functionality. I have found a bit of a delay in this process. My experience using Create a hosted feature service webhook follows. Hope it helps.

  • I created a webhook on a feature service using the FeaturesCreated action.
  • For the HookURL I used, Svix Playground a free webhook testing site to create a unique playground with its own token
  • On creation, the playground registered an immediate get request, which I assume is Esri validating the url
  • I then created a series of features in my feature class
  • Timing for the webhook post to show up in the playground ranged from 2 to 10 minutes.
  • The playground response body is blank, so the webhook notificationStatus page logged a Server Response = No Content; The time for this notification to show up on the notificationStatus page ranged from 20 to 30 minutes. The timestamps on the notificationStatus  page can be converted using: Epoch Converter - Unix Timestamp Converter
  •  From the playground you can evaluate the changesUrl. Following the steps in the above "Create a...webhook" link, you can follow the changesUrl to the statusUrl and download the json via the resultsUrl
  • One other note: in working through testing to a secure internal, and therefore inaccessible, hookUrl the notificationStatus took quite long time to show Invoked Successful? = No and Server Response = The remote name could not be resolved: *serverURL*
0 Kudos