Summary
This article demonstrates how to create a webhook with Make which sends an email notification to the administrator when a feature service is updated. This is a new functionality for ArcGIS Online as of the July 2020 update.
Note:
The example provided is to create a custom webhook in Make with the Microsoft 365 Email module. There are other email modules available.
Before performing this workflow, ensure the following requirements are met:
Procedure
- Log in to Make, and click Create a new scenario. Click Skip.
- In the search bar, search for and select Webhooks. For Triggers, select Custom webhook.
- Click Add, and enter a name.
- Click Save. A hook URL is created. Click Copy address to clipboard, and click OK.
- Hover over the webhook, and click Add another module.
- Search for and select Microsoft 365 Email. For Actions, select Create and send a message.
- Click Add. Name the Connection. Enter the Subject and Body Content for the email.
- Click Add a recipient. In the Add a recipient dialog box, add the name and email address of the recipient receiving the email notification. Click Add. Click OK.
- Open the item details page of the feature service. Scroll to and click View next to the service URL.
- In the Service URL, add admin/ after rest/ and before services/. For example:
https://services.arcgis.com//Wl7Y1m92PbjtJs5n/ArcGIS/rest/admin/services/<feature service name>/
- Press Enter.
- Scroll to the bottom, and click Web Hooks.
- Click Create. Name the webhook.
- Specify the Change Types as '*' (wildcard) to represent all actions.
- Include a Signature Key if desired.
- For the HookUrl, paste the webhook URL from Step 4.
- For Active, check True.
- Click Create. The webhook is created.
Note:
To test the webhook, click Run Once on the Make Scenario tab before updating the feature service. After testing is complete, stop the Run Once function before using the scheduling toggle.