cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MichaelvK
New Member

Image to PDF using flow and retrieve to Power Apps

Hello,

 

I am writing an app in order to upload images, merge them, convert to PDF, and get the outcome (merged PDF) of that Flow back to Power Apps.

Ofcourse before writing this post, I have researched several items on this forum, but I don't seem to get the solution to get the PDF content back to my App.

 

At this moment the following has already been accomplished:

App where one can upload/capture image,

Gather all images,

Send to Flow,

Write images to separate images,

Merge all images to HTML,

Convert HTML to PDF using OneDrive engine,

Write PDF file to OneDrive.

MichaelvK_1-1600080350405.png

 

The next and final step would be to get the content(bytes?) from Flow to Power Apps, and set this as an attachment in the mail function of Power Apps.

In Power Apps, the Office365.Outlook.SendEmail notifies that the used variable is made in an incompatible type.

MichaelvK_3-1600079314830.png

I am trying to create a variable with the outcome of the Flow, using:

Set(ReturnPDF, CreateJPG.Run(JSON(MyItems,JSONFormat.IncludeBinaryData)) ); 
and in the Flow using "Respond to a PowerApp or Flow", putting the filecontent of the PDF as a return content.

MichaelvK_2-1600080375114.png

 

However, in the Power Apps interface, I see that the variable is of the Boolean type. 

The Variable in Power Apps is indeed set to a Boolean:

MichaelvK_6-1600080097469.png

 

 

Can anyone suggest what would be the way to go?
I do not want to choose to use the mail function from within Flow to send the PDF, as there must be inserted more details from the Power Apps app.

 

Thank you for your moment in advance!

Michael

0 REPLIES 0

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

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

Community Call Conversations

Introducing the Community Calls Conversations

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

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (7,058)