CA Service Management

 View Only
  • 1.  Download Attachment with rest

    Posted Dec 22, 2021 02:49 PM
    Hi team,

    I have the following situation, I have been able through postman to download a file that is attached to a request through the rest services, however when it was done in postman it is necessary to click on the save response button to be able to download the file in a path like C.

    I did the same exercise from IT PAM where I am saving the response of the GET operator in a file using the write file operator, however wanting to open the file does not work. It has only worked for me if the file I am downloading from Service Desk is a txt file.

    Any idea how to save the information?

    Response Postman



    Response on IT PAM

    Thank you!


  • 2.  RE: Download Attachment with rest
    Best Answer

    Posted Dec 29, 2021 02:09 PM
    Hi All,

    I found a solution with script on powerShell, basically I call the rest api since powershell and the I save the response on a file like this: