I have a flow with a PowerApps trigger. When the user selects a submit button, the flow should Populate a Microsoft Word Template with values from the selected Sharepoint List item, before creating a docx and pdf with those values to be stored in One Drive. Most of the fields are text, with the exception of Attachments. The flow should execute so that multiple PNG attachments from the selected Item of the Sharepoint List populate into Picture Content Controls in the Word Template.
I am trying to leverage the variables function in the Attachment1 field of the Populate a Microsoft Word template step in an expression to point to the index of the attachment to be populated, but receiving an error: The image is not of type PNG or JPG. Please provide an image of type PNG or JPG.
I've also tried leveraging the Attachment Content dynamic content value in the Attachment1 field, and the flow executes successfully, but it creates the docx and pdf files with the first PNG attachment file before immediately overwriting the file it just created with the second attachment instead.
Here are some screen shots from the flow:




If anyone could help me identify how to write these png files individually to the same Word Doc Template, I’d be forever in you debt!