Hey guys,
I'm currently working on a project where I use Power Apps together with Power Automate to generate PDF documents based on selected items from a gallery.
I have a gallery where multiple items can be selected, and for the selected items, they are sent to an HtmlText:
"<!DOCTYPE html>
<html>
<body>
<h2><strong>Lista itens materiais 180 dias WMO</strong></h2>
<p> </p>
<p> </p>
<p>Material: " & Gallery1_2.Selected.Quantidadeemestoque & " </p>
<p>Quantidade: " & Gallery1_2.Selected.Quantidadeemestoque0 & " " & Gallery1_2.Selected.UN & "</p>
<p>Especificações: " & Gallery1_2.Selected.Modelo_x002f_especifica_x00e7__x & " </p>
<img src=" & varimg & " style ='width:200px;height:200px'>
<p> </p>
</body>
</html>
"
I then trigger a Power Automate flow to generate the PDF based on the HTML content.
The problem I encounter is that the PDF is only being generated for a single item selected in the gallery, and I would need to generate it for multiple selected items. Could anyone help me with how I could do this?
Any insights, suggestions or examples on how to achieve this would be greatly appreciated. Thank you in advance for your help!