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

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

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.
Hmp-pt
Frequent Visitor

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.

Pstork1
Dual Super User III
Dual Super User III

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (16,551)