How to create PDF File from REST API response with application/pdf payload


I need urgent help on creating PDF using the raw PDF getting in response from REST API Call. Following image is displaying the response of call made to Power BI to get PDF print of the report. In response, a payload of type application/pdf is received. Upon copying the response to an empty file with .pdf extension creates a perfect PDF. Also pdf file is created using Send and Download button as shown in image below.

How this could be done in Outsystems? What is required to convert this raw response to PDF file? Postman image is attached with the request as well.



Thats looks like a regular binary response. Create a consume Rest API Action. Set the response Format of the action to "Binary". Then create a new Output Parameter of Type Binary Data and "Receive in" to Body.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.