cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

How do you return pdf content from an API to PowerApps for viewing?

Hi,

 

Does anyone have experience with this?

 

Here is the output from my HTTP GET request. The API says the pdf file is returned.

 

OutputCapture.PNG

 

I'm trying to display this file in a pdfviewer within Power Apps.

I return the output to Power Apps using a Response action, put the result of the flow into a collection and then set the document property on the pdfviewer like so:

 

documentproperty.png

 

But it says it expects a Blob.

How do I return that?

Do I have to save the file somehow and then use the GetAttachmentContent action?

I tried lots of ways but with no success thus far.

 

Please help!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: How do you return pdf content from an API to PowerApps for viewing?

Watch the video.  He is using Flow to get the file content via a connector (API) also.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Highlighted
Dual Super User III
Dual Super User III

Re: How do you return pdf content from an API to PowerApps for viewing?

Take a look at this video tutorial by Paul Culmsee.  It returns a PDF from Flow to display using the Response action.  It should give you what you need.

https://www.youtube.com/watch?v=s3PC7tqqoI4



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted
Frequent Visitor

Re: How do you return pdf content from an API to PowerApps for viewing?

Thanks @Pstork1 .

 

What do I return though and how? All the videos I've seen are obtaining the pdf content from files stored in Sharepoint and using the GetFileContent/GetFileAttachment action to get the content.

 

I have the output from the API.

 

Thanks again.

Highlighted
Dual Super User III
Dual Super User III

Re: How do you return pdf content from an API to PowerApps for viewing?

Watch the video.  He is using Flow to get the file content via a connector (API) also.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (5,699)