Skip to main content
Solved

Print HTTPCaller


amber369
Contributor
Forum|alt.badge.img+2

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!

Best answer by j.botterill

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

View original
Did this help you find an answer to your question?

3 replies

j.botterill
Influencer
Forum|alt.badge.img+34
  • Influencer
  • Best Answer
  • March 14, 2025

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


hkingsbury
Celebrity
Forum|alt.badge.img+50
  • Celebrity
  • March 16, 2025

@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


amber369
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • March 18, 2025

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings