Maybe a case for using WorkspaceRunner
Hi @n543, can you share your workspace or details on how you download attachments from AGOL? I am currently trying to do this and have got so far as exposing the attributes and file names but cannot seem to download the actual images.
Thanks in advance!
Hi @n543, can you share your workspace or details on how you download attachments from AGOL? I am currently trying to do this and have got so far as exposing the attributes and file names but cannot seem to download the actual images.
Thanks in advance!
@connor27 did you ever get this workflow working? I am now looking to simply download AGOL attachments and dump them in a Windows Folder with an attribute as the <FILENAME>.jpg
@connor27 did you ever get this workflow working? I am now looking to simply download AGOL attachments and dump them in a Windows Folder with an attribute as the <FILENAME>.jpg
Hi @benvk, Yes I did (Eventually). It may not be the easiest or correct way of doing things but it worked. When you read in your AGOL data, ensure that Include attachments = "Yes" and expose all the attachment related attributes. You can then route your features to the "AttributeFileWriter". I've screenshot the parameters. In target Filename $(Output_Folder)is the published parameter of where i saved my attachments, @Value(arcgisonline_attachment{0}.id) is just a unique ID given by AGOL, @Value(Asset_ID_N) is the ID of the asset my team were taking photos of so probably not relevant to you and @Value(arcgisonline_attachment{0}.name) is just what the team had named the image. I needed to create an AttributeFileWriter for each of my attachments, so i typically had up to 50 so had to create 50 of them, increasing the number in the brackets {} by one every time.