cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Hmp-pt
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

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
Pstork1
Dual Super User
Dual Super User

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.

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.

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.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,592)