Select to view content in your preferred language

S123: How to manage S123 webhook through API for python

566
2
11-23-2022 02:04 PM
lannguyentl
New Contributor III

Hi all,

We have Survey123.arcgis.com connect to manage our forms published to enterprise portal.

We normally add webhook to our forms through Survey123.arcgis.com\Setting or Integromate does it for us.

However, we do not fully understand how the webhook works. If the webhook was created against the S123 form or against the hosted feature service behind the form?

We have tried against the feature service

wh = arcgis.features.managers.WebHook("https://aaa.bbb.com/hosting/rest/services/Hosted/Culvert_TL_WFL1/FeatureServer",gis)

wh.properties

wh.edit()

and what returns is just the description of the service, nothing related to webhook.

We would like to see and manage the webhook through arcgis api for python.

If anyone knows what should we use? 

Thanks,

Lan

Tags (2)
0 Kudos
2 Replies
ZacharySutherby
Esri Regular Contributor

Hello @lannguyentl

There are two types of webhook triggers, Survey123 and feature service both being different in how they are configured. 

 

Please refer to these links regarding configuring feature service triggered webhooks: 

https://www.esri.com/arcgis-blog/products/arcgis-online/sharing-collaboration/how-to-create-a-hosted...

https://developers.arcgis.com/rest/services-reference/online/web-hooks-feature-service-.htm

 

Please refer to these links regarding configuring Survey123 triggered webhooks: 

https://doc.arcgis.com/en/survey123/browser/create-surveys/webhooks.htm

https://community.esri.com/t5/arcgis-survey123-blog/getting-started-with-survey123-and-integromat/ba...

https://community.esri.com/t5/arcgis-survey123-blog/automating-workflows-with-survey123-and-microsof...

 

If you are configuring your webhook through the Survey123 website or using the Survey123 connector in Integromat/Make you are using a Survey123 triggered webhook. 

 

As for the ArcGIS API for Python the methods you are referencing are for a feature service triggered webhook and not a Survey123 triggered webhook. At this time there is no support for configuring Survey123 triggered webhooks through the ArcGIS API for Python. If it were to exist it would be located in the arcgis.apps.survey123 module. Please feel free to reach out to Esri Technical Support to log an enhancement to support this functionality in the future. 

Thank you,
Zach
0 Kudos
lannguyentl
New Contributor III

Thank Zach!

What a coincidence, I'm reading/browsing your work in Github 🙂 

Thanks for your reply and I will check them all.

I definitely will follow you in API for py and Javascript!

Kind regards,

Lan 

0 Kudos