Download file via rest api

0
My scenario is call Rest Api from file server and got the  http response as picture below How can I get file downlaod from http response ?
asked
5 answers
0

In the response handling part of the REST call, choose Store in a file document

answered
0

Joost Verhoog as picture 

 

answered
0

Joost Verhoog 

I can get correct file name and downlod. The last issue is for image file it automatic show on browser. I need to pop up show and save to file like .pptx file.

answered
0

If you update the Name property of the fileObject that you save to the filename  it should show correctly when downloading. Also check the $latestHttpResponse/httpHeaders objects for a “filename” header after making the request. It’s easier to see which headers are passed from the REST endpoint by making the request in postman first.

So stepwise:

  1. Make the REST request and save the response to a filedocument
  2. Retrieve via association the latestHTTPResponse/httpHeaders List
  3. Filter the list for the filename header (if it exists)
  4. Update the name of the filedocument object with the content of the header
  5. Download file
answered
0

 

1- In Response handling Select Store in File Document

2-In Output select the Entity that is generalized to System.Filedocument

3-Provide variable name

Next

 

4- Use change object Activity

5-At last use download file activity

answered