Skip to main content
Solved

Print HTTPCaller

  • March 14, 2025
  • 3 replies
  • 50 views

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

j.botterill
Influencer
Forum|alt.badge.img+53
  • 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+64
  • 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!