Hello,
I'm trying to use Power Automate to set up automatic email notifications when a new feature is added to a hosted feature layer on ArcGIS Online.
I'm using the trigger "When a feature is created" and associated action "Fetch updates, changes, or deletions" to attempt to pull in any attributes and/or photos from the newly created feature and organize them into an MS Outlook "Send an email(V2)". I have the attachments being pushed into an array variable then added to the email as an attachment.
I can see the photo attached to the new feature in ArcGIS Online. But the output for Fetch updates, changes, or deletions is returning a null array for the attachments which is causing the action for Append to Array Variable to be skipped entirely. I copied and pasted the output of the Fetch updates, changes, or deletions below.
@Caitlin_Todd_LCOR , If the attachment is always created only when a feature is created then I would recommend you use something like this:
Else, Maybe another trigger like `When attachment is created` is more appropriate.
That said, I will look into enhancing this option to Fetch updates, changes, and deletions action.
To piggy-back on this, here is an example of an output of ArcGIS Connector for Query Attachment: