I am trying to use a small script to make calculations when features are created or edited.
I can see webhooks at the item level for a feature layer collection but not at the individual layer level.
Is it possible to trigger a webhook when a person edits or creates a record/feature?
A user creates a new point in a points feature layer in Collector. When they submit, a webhook recognizes it and sends a request to an AWS Lambda function that runs a spatial join on the point and a reference layer and then sets field values in the point based on the join.
I am using AGOL not Portal
Thanks @Matt Creaney, I have been trying to create a webhook to send notifications when a feature service has been edited. I am on AGOL and not portal. The only step by step webhook creation docymentation I have come across is in this post. Say I have a feature service on AGOL, what is the step by step to create a webhook?
The link I posted has the steps I followed to setup a webhook for our AGOL feature service, I only use it on feature updates at the moment but it triggers on create or delete too.
I have followed the link instructions to the letter but haven't been successful. Are you able to replicate your steps and share? Any help will be appreciated.
This what I did
I set a webbook URL in Azure. Checked it by clicking on it and it worked. See the response below
In Post Man I put the following details in headers;
and the following in body:
I get the error
I'm not familiar with POSTMAN as I worked directly on the admin directory for my feature server. This way the token is generated automatically in the query string.
if you use the URL from the services directory you were in you should be able to fill in the values enclosed in