Repeats and Multiline Image Questions and Integromat

1054
9
Jump to solution
11-24-2020 01:30 AM
RoryBennison
New Contributor II

Hi ,

Is there or should there be functionality in the webhook to use HTTP get a file in integromat to download photos from a survey that are from a repeat or multiline question?  At the moment we can only download a single image from a multiline question.

 

Cheers

0 Kudos
1 Solution

Accepted Solutions
IsmaelChivite
Esri Notable Contributor

To add a bit more to this, here is a screenshot of an Integromat flow hat uploads all attachments submitted through an image question with multiline appearance. Note that an Iterator module is used to loop through all attachments sent, so they can be uploaded to OneDrive.

IsmaelChivite_0-1606247729700.png

The iterator is configured to target the Attachment URL array:

IsmaelChivite_1-1606247834119.png

When downloading the attachment using the HTTP Get a file operation, do not forget adding the token a the end of the URL if you are working with a private feature layer.

IsmaelChivite_2-1606248017761.png

Another useful module in Integromat is the Array Aggregator. This blog describes how it works: https://www.integromat.com/en/blog/how-to-use-iterator-array-aggregator-in-integromat-scenarios  The array aggregator is useful, for example, if you want to add all attachments into a ZIP file.

Generally speaking, I would avoid if at all possible adding a repeat just so people can send more than one image. The multiline appearance gives you much more control and results in data that can be more easily used from ArcGIS.  Additional details about this here: https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-photos/ba-p/897907

 

View solution in original post

9 Replies
JamesTedrick
Esri Esteemed Contributor

Hi @RoryBennison ,

You can access the attachments of a submission from the feature.attachments properties - each attachment is separated by question name and have the URL to then download the attachment with.

0 Kudos
IsmaelChivite
Esri Notable Contributor

To add a bit more to this, here is a screenshot of an Integromat flow hat uploads all attachments submitted through an image question with multiline appearance. Note that an Iterator module is used to loop through all attachments sent, so they can be uploaded to OneDrive.

IsmaelChivite_0-1606247729700.png

The iterator is configured to target the Attachment URL array:

IsmaelChivite_1-1606247834119.png

When downloading the attachment using the HTTP Get a file operation, do not forget adding the token a the end of the URL if you are working with a private feature layer.

IsmaelChivite_2-1606248017761.png

Another useful module in Integromat is the Array Aggregator. This blog describes how it works: https://www.integromat.com/en/blog/how-to-use-iterator-array-aggregator-in-integromat-scenarios  The array aggregator is useful, for example, if you want to add all attachments into a ZIP file.

Generally speaking, I would avoid if at all possible adding a repeat just so people can send more than one image. The multiline appearance gives you much more control and results in data that can be more easily used from ArcGIS.  Additional details about this here: https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-photos/ba-p/897907

 

RoryBennison
New Contributor II
Thank you that solved our problem, much appreciated
0 Kudos
RoryBennison
New Contributor II

Thanks for the quick reply, I will have a look into those solutions.  By private feature layer do you mean a survey that is not shared public or a survey that is is not shared to a group?

0 Kudos
HaroldHerrera1
Occasional Contributor

Hello @IsmaelChivite .

It's possible to use iterator functionality to write repeats in differents rows in google sheets?

0 Kudos
RoryBennison
New Contributor II
Hi There,
Not sure of Google Sheets but definitely possible in Excel.
[cid:image001.png@01D7C006.20530F10]
0 Kudos
TerraRosaGISAdmin
New Contributor

Hi There, 

This sounds exactly like what I am needing help with. Do you have any screenshots of the intergromat flow or a bit more info on how you did it?  

Thanks!

0 Kudos
RoryBennison
New Contributor II

Hopefully these screenshots help, this is what we use for multiline images in our surveys

 

RoryBennison_0-1652818743198.png

RoryBennison_1-1652818770731.png

RoryBennison_2-1652818790042.png

RoryBennison_3-1652818854613.png

 

 

 

 

0 Kudos
TerraRosaGISAdmin
New Contributor

Thanks for that. That helps a lot. You mentioned that you were able to insert the pictures into the excel doc? Is it possible for you to share the flow involving that? 

Thanks!

0 Kudos