Select to view content in your preferred language

Attachments from Field maps to Local Folder using Power Automate

247
2
07-30-2024 06:17 AM
Sghimire
Emerging Contributor

We have a project involving the use of Field Maps to collect various types of data, including attachments. I am working with ArcGIS Enterprise. While I have successfully used Survey123 in the past, I am now seeking to automate the export of attachments added via Field Maps. Could you please provide guidance on whether this is possible, and if so, outline the steps required to achieve this? Thank you for your assistance.

2 Replies
ZacharyHart
Honored Contributor

Subscribed...

0 Kudos
RikiChan
Emerging Contributor

Hi, I done it from Field maps to OneDrive.

The general workflow comes from UC2024, you can check the recording at below.

I tried to follow the recording to recreate the flow but it is not successful from me.

Then, I had spent a few night to changed and created the similar function as I want.

RikiChan_2-1723775906624.png

 

1. The trigger is the feature layer when attachment created.

RikiChan_0-1723786920322.png

2. When layer update, change and delete, get "changesUrl" and feature layer identification code "layerId".

RikiChan_2-1723787030247.png

3. "For each 1" loop get the "attachments" data from previous step

RikiChan_3-1723787111041.png

4. Get "url" from Attachment

RikiChan_4-1723788231046.png

5. To get the object field information, it need to match the GobalID between attachment attribute table and Feature layer attribute table.

RikiChan_5-1723788467535.png

6. "For each 2" loop get the field data from previous step for next step

RikiChan_6-1723788556713.png

7. Finally, Upload to One Drive or Share Drive and rename the attachment according to the field name

RikiChan_10-1723789992130.png

 

Remark: Some of the valuable cannot insert directly, you need to insert by dynamic content and edit in the text box.

RikiChan_9-1723789932592.png

 

 

Hope that can help you.

 

For the watermark, they are using Encodian which need to spend credit per step in Power Automate.

In Arcgis notebook the watermark API is free but I don't know how to get the field information by code to rename attachment LOL

https://community.esri.com/t5/arcgis-notebooks-questions/how-to-rename-attachment-based-on-field-nam...

 

 

 

 

 

 

 

0 Kudos