Select to view content in your preferred language

Run ArcGIS Notebook Server Task based on Feature Service Changes

1134
4
01-25-2024 08:56 AM
ajohnson_wsb
Occasional Contributor

Does anyone know if it is possible to run a ArcGIS Notebook Task based on changes in a feature service? Our goal is to run a Notebook task when new features are created in a Feature Service. I know a Webhook can be created based off a Feature Service but I'm struggling to see if I can direct this Webhook to run a Notebook Task. The current documentation for creating Feature Service Webhooks requires a payload url to an external automation service like Power Automate or Make but I would rather keep this workflow internal and not rely on an external service to run a Notebook Task.

I also reviewed the Organization Webhooks that are available within ArcGIS Enterprise but I do not see where they can be based off of data changes within a Feature Service. Any help would be greatly appreciated.

Tags (2)
4 Replies
RhettZufelt
MVP Notable Contributor

I have used this method before to detect changes in a hosted feature service.  Could probably be modified to fire off your notebook/python script instead of sending an email.

R_

0 Kudos
KevinHibma
Esri Regular Contributor

Hi - Unfortunately at this time, only the Organization webhooks can be sent directly to Notebook Server. Enhancing Enterprise Feature Service webhooks so they can direct payloads to Notebook Server is on our roadmap, however I cannot predict when we'll implement this functionality. 

You've identified the middle-ware workaround of sending to Power Automate or Make and having them send off the request to the notebook. Alternatively, if you've exposed your Notebook as a WebTool, you might be able to direct the webhook to this endpoint. I'm mostly confident that the webhook would trigger the tool (notebook), the problem becomes getting the payload contents which I don't believe can be handled. So if the notebook could go and do something without information from the payload, this might be a solution for you?

JackFanZhang
Frequent Contributor

according to Automate a notebook using service webhooks , it is possible now with ArcGIS Portal. However, nothing I have found about how to get this done in AGOL.

0 Kudos
KevinHibma
Esri Regular Contributor

As of the ArcGIS Enterprise 11.4 release, a new beta feature was added to Notebook Server: webhook receivers. This will come out of beta, and be a supported feature in ArcGIS Enterprise 11.5. IE. You can send feature service webhook messages to notebook server.

 

@JackFanZhang ArcGIS Online does not offer the same Notebook Server webhook receiver functionality as ArcGIS Enterprise. For ArcGIS Online Feature Service webhooks, you still need to send them to either a 3rd party receiver, or some sort of custom one you've built and deployed.

0 Kudos