Skip to main content

Download Attachment from AGOL Hosted Feature Layer

Comments

2 comments

  • Brian Cunningham

    For posterity's sake, I've got a shell of a solution in place, with the rough outline below:

    • Use the Get Workflow Inputs activity to get the layer from the context item
    • Use the Get Layer activity to retrieve the URL for the layer from the context item
    • Utilize the Query Attachment Infos activity to get the id for the attachment(s)
    • Run a server workflow to retrieve an AGOL token
    • Construct the REST API request URL with a combination of the layer url/attachment id/token
    • Use the Send Web Request activity with the constructed URL
    • Run a server workflow to convert the response from the web request to bytes and create the file

    Seems like there should be an easier process... but alas, this does the trick :-).

    0
  • Peter Milenkovic

    Thanks for outline Brian, did you have to include something in the header? I assume this is to convert the response from json to bytes? 

    0

Please sign in to leave a comment.