Select to view content in your preferred language

How do you run a Python Script to update attribute information in an AGOL layer whenever the data gets edited?

686
2
12-14-2023 09:59 AM
ehuisman
New Contributor

We have a model builder that is able to calculate sequential numbers among other things. It calculates the values for data, which is hosted in AGOL. The data layer receives point deletions every day. We are wondering if it is possible to have the tool run and re-calculate the sequential values immediately following the deletion of a point, rather than schedule it to run at a given time interval. We would prefer it to run instantaneously and not run when not needed.

Thank you!

0 Kudos
2 Replies
JaredPilbeam2
MVP Regular Contributor

I would maybe post your question in this community too:
https://community.esri.com/t5/arcgis-api-for-python/ct-p/arcgis-api-for-python

0 Kudos
MobiusSnake
MVP Regular Contributor

You'll want to use webhooks, serverless functions (e.g. AWS Lambda) and the ArcGIS API for Python.  Here are a couple links about using webhooks:

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

https://architecture.arcgis.com/en/framework/architecture-practices/integration/webhooks.html

 

0 Kudos