Execute Model in AGOL

446
3
12-14-2022 11:39 AM
Labels (1)
MarlaJohnson
Occasional Contributor

Hello,

Is there a way to execute a model in AGOL.  I need the data to move from a feature class to a table everytime someone adds a new record to the feature class. 

0 Kudos
3 Replies
JoshuaSharp-Heward
Frequent Contributor

Hi Marla,

Are both the feature class and table hosted in ArcGIS Online or is the feature class local and the table hosted in AGOL?

0 Kudos
MarlaJohnson
Occasional Contributor
Both are hosted in ArcGIS Online.
0 Kudos
JoshuaSharp-Heward
Frequent Contributor

If the update needs to be instantaneous I would recommend looking into webhooks, which can be configured to run every time a feature is submitted. You would need access to a tool like Microsoft Power Automate or Integromat to do so though. Documentation on webhooks here: https://developers.arcgis.com/rest/services-reference/online/web-hooks-feature-service-.htm

Alternatively if it could be on an hourly or daily update, I would recommend using ArcGIS Notebooks in AGOL to accomplish this, as you can set them to run on a schedule. This page https://developers.arcgis.com/python/guide/editing-features/ has examples on how to query and add data to feature services using the API for Python, it can take a little bit of getting used to but it works pretty effectively.

Hope that helps!

0 Kudos