Hi Jevita,
Currently, downloading an attachment in Flow is somewhat difficult. Here is an example workflow:
The steps are:
- Send a request to the QueryAttachments Resource
- Parse the results of the request as JSON
- Extract the attachment id from the result (the ‘Compose’ step)
- (optional) Extract the attachment’s file name (the ‘Compose 2’ step)
- Request the attachment, using both the objectid of the feature and the id of the attachment
For steps 1 & 5, you will also need to provide a token of a user with the ability to query the feature service – Flow currently cannot access the token of the submitting user.
We are working to make this less cumbersome in the future.