Select to view content in your preferred language

Fetch updates, changes, or deletions still not working

379
4
11-05-2024 05:16 AM
ZacharyHart
Honored Contributor

I've been at this on & off for a few months now. Relevant info:

  • HFL in AGO; 'Keep track of changes to data' enabled.
  • Have tried several different flows based on blog posts etc., some of the previously provided examples from Esri appear to be out of date now as things have advanced (such as parsing an array).
  • The trigger 'When a record is updated in a feature layer' is working.
  • The action 'Fetch update, changes, or deletions...' returns an empty payload regardless of the changes made to the HFL (delete, update attributes, etc). 
  • While the flow shows as successful, any of the subsequent steps like posting in a teams channel actually just hang

Below are screenshots showing the different flows:

Using 'body'

ZacharyHart_0-1730811897369.png

Using array(triggerOutputs()?['body']) per a previous Esri example:

ZacharyHart_1-1730812028168.png

Created a parallel branch to test the trigger itself and this works as expected:

ZacharyHart_2-1730812242544.png

As we can see the trigger is firing as expected:

ZacharyHart_3-1730812370119.png

and the subsequent Teams channel message is sent.

But for the Fetch updates, changes, or deletions, the payload/body/output is always empty in all these versions:

ZacharyHart_4-1730812583217.png

What am I doing wrong??

 

 

0 Kudos
4 Replies
DominicRoberge2
Frequent Contributor

Hi @ZacharyHart 

below is a screenshot of my flow which is working just fine. It's very similar to your first flow you are showing, perhaps try a body/items in the apply to each2 step? I also use a Compose step to get all the detail info from item, then I can extract what ever info I need.

Hope this help.

 

 

DominicRoberge2_0-1730815687403.png

 

0 Kudos
ZacharyHart
Honored Contributor

@DominicRoberge2  Thanks for reaching out.

This is one of the more curious points for me as I recall seeing body/items in the past but it's not listed in the options now it seems:

ZacharyHart_0-1730816743848.png

 

 

Was the compose step something you found through experimentation? I've not seen any Esri example with that yet. 

0 Kudos
DominicRoberge2
Frequent Contributor

well, sometimes you have to look at the OUTPUT of the previous step to get what you are looking for

So you might have to create the expression yourself:

DominicRoberge2_1-1730817863038.png

 

DominicRoberge2_3-1730818165217.png

 

 

Yes, the compose was something I came up with trial and error and google search. Might not be the best way to do it, but it's working for me.

DominicRoberge2_2-1730818076461.png

 

Lots of trial and error 

 

 

 

 

ZacharyHart
Honored Contributor

hmm, that's interesting thanks. I'm just at a loss why sometimes you see body/items and other times just items. It's really hard to use other examples, even from Esri, because the interface always looks slightly different, or Power Automate tries to add in another 'for each' that isn't needed etc. 

Case in point in this video, the presenter mentions that they are using Attachment ID (which is a dynamic option from a previous step in Power Automate), but the actual entry shown on the display they are presenting from in Power Automate doesn't say that at all. So confusing...

On top of that, there are several examples out there regarding working with attachments and they don't even use any of these Esri/ArcGIS actions, it's just HTML stuff generic to Power Automate.

0 Kudos