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 Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,832)