Announcements
Hello!
I have this flow:
See, there are 5 items that should appear in 1 PDF file. However, in reality, there are 5 files with different items sent to the email.
How to solve this problem? Thank you!
Hi @firda59 ,
If you want generate one single PDF with all you needed HTMLs and send only one email, you should initialize a variable to store HTMLs in "Apply to each" loop. Then convert it to PDF and send an email outside of the loop.
Community Support Team _ Wenjuan Zou
If this post helps, then please consider Accept it as the solution to help the other members find it.
Hi @v-wenjuan-msft
I don't understand using initialize variable like that, can you help me, what should I write in name column.
Then, in Encodian I have HTML text for table format. When I insert my HTML to encodian, like this
automatically encodian will be appear in Apply to Each, because I arrange the value from get Items (sharepoint) to the table format (HTML text) like this,
How to make the encodian in the outside loop? Thank you.
With reference to your new reply, here's details and modifications to my previous reply:
In initialization, we will build opening part of HTML table. In apply to each, we will append rows of records to the HTML table with dynamic content. and then outside of the apply to each, we will append closing lines to the HTML table. So that all your data from "Get items" will be integrate into one HTML table storing in the variable. Next you can insert the variable into "Convert HTML to PDF" and continue.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 237 Super User 2026 Season 2
David_MA 227 Super User 2026 Season 2
Mohsin Ali 194