AnsweredAssumed Answered

Save CSV File from URL

Question asked by chuckburr on May 25, 2018
Latest reply on May 31, 2018 by fmpdude

How can I save a CSV file from a URL to disk to later be imported.

I looked into BE_SaveURLToFile but this function does not exist in the January 2018 Mac Plugin folder. Here is the BaseElements Help Center BE_SaveURLToFile

BE_SaveURLToFile – BaseElements Plugin Help Centre

 

I looked into BE_HTTP_GET_File but this function but the code does not seem to download and create the file in the path target. I get a ? for value in data viewer.

Variable: $SafeFile

Value: BE_HTTP_GET_File ( "https://www.ABCco.com/api/v3/databases/data?download_type=partial&api_key=MYKEY" ; "/Users/myname/Documents/Downloads_History/" )

The URL downloads fine if you enter it in a browser.

The Path is valid. I use it in the next step to Be_Unzip.

 

Base Elements Help Center BE_HTTP_GET_File

BE_HTTP_GET_File – BaseElements Plugin Help Centre

 

Is there a FM 17 script step I can use?

Outcomes