I'm trying to set up a webhook in ArcGIS Online that will send an email when a feature has been created in a hosted feature service. I do not have portal/enterprise, so the only example that I have found is setting the webhook up with Integromat. We have o365 and I would like to use Power Automate (MS Flow) to send the email. I've been trying to follow the MS Flow steps in this example, but without success. I copied and pasted this sample into my JSON payload:
{ "layerId":0, "serviceName": "myService", "changeType": "FeaturesUpdated", "orgId": "myorgId" "changesUrl": "https://olserver/services/myService/FeatureService/extractChanges?serverGens=[1122, 1124]" }
Which creates the following in 'When a HTTP request is received' (code view):
{
"kind": "Http",
"inputs": {
"schema": {
"type": "object",
"properties": {
"layerId": {
"type": "integer"
},
"serviceName": {
"type": "string"
},
"changeType": {
"type": "string"
},
"orgId": {
"type": "string"
},
"changesUrl": {
"type": "string"
}
}
}
}
}
I then have the next step to send an email to my email account.
I added the hookurl to my webhook with "ChangeTypes" = FeaturesCreated. The webhook created successfully, but no email is sent when the hosted feature layer has a feature added to it.
If you have done something similar to this workflow, any guidance would be much appreciated!!
Hey @CalebCarpenter_MBI ,
Absolutely, I can help with this. Are you getting any error right now?
I found this blog, that gives a step by step instruction.
Please let me know where you are stuck and we can start there.
Thanks Julie
I am also trying to do this. Could you share your process/scripts?