Select to view content in your preferred language

Power Automate - Trigger - Webhook

908
7
10-24-2024 01:52 PM
ModernElectric
Frequent Contributor

UPDATE: @IsmaelChivite @ZacharySutherby @JenniferAcunto 

I have a Power Automate flow created that a PDF report is created (Action) when a form is submitted (Trigger). Works fine.

ModernElectric_0-1729802914455.png

 

Also, as part of the webhook, if the data is edited/updated from the Survey123 app or website, the Power Automate Flow will execute and produce another PDF report.

ModernElectric_1-1729802997430.png

HOWEVER:

I have had to build a sub-process that exports the data from the AGOL portal to my local drive, run some data modifications and uploads the data from ArcGIS Pro back to the AGOL portal by using the Append tool.

My thought was update/append/webhook Existing record edited would all mean the same time. Apparently not.

If I run a geoprocessing tool from ArcGIS Pro and/or Python script, how can I set the webhook or Power Automate Trigger to execute the flow????

Any advice

0 Kudos
7 Replies
DuncanC
Frequent Contributor

I haven't had time to actually implement anything with webhooks yet so take this for what it's worth.  But what I picked up from this forum is that the webhook on the Survery123 is client side (unconfirmed but it's been inconsistent when I have tried to use it so I believe it).  So when you edit the data outside of the Survey123 apps it's not triggered.  But ESRI does have proper (server side) webhooks you can setup from the admin tab of the REST interface of the layer, I did a little testing with them and they seem to work as expected.

0 Kudos
RobertAnderson3
MVP Regular Contributor

What @DuncanC said is correct, the Survey123 webhook is triggered from the Survey123 app when a survey is submitted. This has lead to some inconsistent behaviour in the past.

Best suited for when there's updates to the layers directly, not via a Survey123 submission is the ArcGIS Connector (the orange one). This is a Premium connector in Power Automate though if that's an issue, but it will provide what you're looking for.

0 Kudos
ModernElectric
Frequent Contributor

@RobertAnderson3 

Thank you for the response. Can you clarify and point me in the right direction on what you are explaining? What I need to do is when the attributes are updated, lets say via ArcGIS Pro/Python script, to a Survey123 form, Power Automate is initiated to create a report. I have the flow configured, its the webhook and updating an existing survey/form from ArcGIS Pro that is the missing piece.

 

0 Kudos
RobertAnderson3
MVP Regular Contributor

You would want to use this trigger I believe, it should work, I'm not 100% if the scripted update process would trigger it though.

RobertAnderson3_0-1731002947169.png

 

ModernElectric
Frequent Contributor

@RobertAnderson3 @IsmaelChivite @ZacharySutherby @JenniferAcunto 

There must be something I am missing. Using Power Automate, I keep getting an error message while using the ArcGIS Connector (orange) saying I need a Premium License. However, according to my knowledge, the ArcGIS for Microsoft 365 accepts a Creator ESRI license type. Is there a setting within Power Automate I need to update, even though I used my ESRI login credentials.  

0 Kudos
RobertAnderson3
MVP Regular Contributor

I am not super familiar with the exact licensing, at my prior job a couple of us had gotten the premium licensing on a per user basis to get started. At my new place I opened up Automate and it seemed to be letting me use the ArcGIS Connector but I didn't end up actually trying to run anything yet.

It might need the Creator license in ArcGIS Online for the connected account AND the Premium license for Power Automate itself.

0 Kudos
ModernElectric
Frequent Contributor

@RobertAnderson3 

Thank you for the information. Appears I need to #1 talk with my IT Officer about our Power Automate License(s) before I can continue development. I see there is more that I can use.

Thank You for the feedback