ArcGIS Online Webhook with MS Power Automate (Flow)

3073
11
02-09-2021 03:02 PM
Danielle_Journey
Occasional Contributor

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. 

Danielle_Journey_0-1612911137280.png

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!!

11 Replies
JulieK
by
Occasional Contributor

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

0 Kudos
Jorge_Goicochea
New Contributor

I am also trying to do this.  Could you share your process/scripts?

0 Kudos