Geographic Information Systems Asked on February 28, 2021
I have a feature layer in AGOL.
Whenever edits are made to features in the layer, I want to POST those edits/attributes to an external system for testing purposes.
How can I set up an AGOL webhook and point it toward Integromat/Google Sheets?
Related:
Here's the full Integromat solution:
This JSON can be imported into Integromat to create the scenario (file download): https://drive.google.com/file/d/14AXG9-zK2eGxBxHiWK9lFqoyHfswbdQ8/view?usp=sharing
Note:
A couple of the HTTP request steps would work sometimes, and fail other times.
It seemed to be necessary to give those steps adequate time to process before I sent a subsequent request. I used sleep modules in Integromat to add a slight delay (1-second).
Correct answer by User1973 on February 28, 2021
This solution gets us part of the way there:
When features are edited in the feature layer, an AGOL webhook sends a POST request to Integromat/Google sheets.
However, the result is just information about the edit—it does not contain any of the attributes from the edited feature.
Here are the steps:
AGOL:
AGOL
--> Content
: Click your feature layer and then go to the Settings
tab.Feature Layer (hosted)
--> Editing
section, ensure that Keep track of created and updated features.
is checked.Save
.Overview
tab (in Content) and click the Feature Service
link (in Details
-->
Source: Feature Service
)./admin
between /rest/services/
like so: /rest/admin/services/
. Hit Enter.webhooks
link at the bottom of the page.Create
hyperlink.Integromat:
We'll use Integromat and Google Sheets as an external system to POST to:
Scenarios
in the left pane.Create a new scenario
in the top right corner.webhooks
module and then click Continue
in the top right corner.Custom webhook
.Add
and give your webhook a name.Copy address to clipboard
:AGOL:
Create
.Integromat:
Add a row
.payload
in the Google Sheet field that you want the webhook data to go into.OK
and click the Save button in the bottom toolbar:ON
and click Activate
.Create a new feature and test:
Answered by User1973 on February 28, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP