We have a report list which has one photo attachment per record.We would like to populate a Word Template with this image (without saving it first to Sharepoint).
Is het possible to directly add the attachment image in to the Word Template?
Hi @SilverBullet
This works for me. Note that I get into an apply to each because get attachments will return an array, so you could use first() or call the file ID using integer indexes [0]. This will work though and create one word doc if you only have one file attached to the List Item.
Please consider accepting my answer as a solution if it helps to solve your problem.CheersDamienPlease take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts, or take a look at my website. Thanks
Hi @DamoBird365 .
How does it work with multiple attachments?
Could you explain the 'use first() or call ID please'
I am trying to populate a template from a list item that has 2 attachments, a photo jpg and a pen input jpg. I want to put each attachment in the correct location of the form.
Thanks
What control did you use in the word template file to accept the image from sharepoint? Trying to accomplish this, and your images pointed me in the right direction I think on the PA side, but need a little assistance on what will accept the incoming image as simple text controls do not and neither does the picture control.
Thanks!
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 462 Super User 2025 Season 2
Tomac 456 Moderator
abm abm 243 Most Valuable Professional