Skip to main content

Hi,

First off, excuse my ignorance in this question - im a beginner. Please let me know if any additional details would be helpful.

I am using the HTTPCaller transformer to run a print POST from an AGOL app (Experience Builder).

I’m able to successfully run the HTTPCaller and pull the response_body containing the output pdf URL. 

Id like to now run another transformer to download that pdf locally. Any suggestions on the next transformer to achieve this? 

An example of the URL: https://utility.arcgisonline.com/arcgis/rest/directories/arcgisoutput/Utilities/PrintingTools_GPServer/_ags_mapfile_name_hear.pdf

Much thanks!

You might be able to change or add a second HTTPcaller to perform a GET 

  • Request URL: Set this to the attribute or parameter containing the PDF's URL.
  • HTTP Method: Use "GET" for downloading.
  • Save Response Body To: Select "File."
  • Output Folder: Specify the directory where you want to save the PDF.

Another approach might be to explore if the https://support.safe.com/hc/en-us/articles/25407563623565-How-to-Use-the-ArcGISOnlineConnector can help with download action


@j.botterills approach would be my choice too. There is also the AttributeFileWriter that can write an attribute value to a file - https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Transformers/Transformers/attributefilewriter.htm


Awesome, thank you both for the suggestions. The Get HTTPCaller did the trick. Really appreciate the assistance!