In the response handling part of the REST call, choose Store in a file document
Joost Verhoog as picture
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.
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.