I'm using the Word Online (Business) connector and the Populate a Word Template action. I have an image content control on my template.
My image is stored as a list item attachment. I'm using Get Attachments then Get Attachment Content to return the attachment content. Assume I am controlling for just one attachment.
I would like to set a variable to the attachment content returned, then use that variable for the image when I set my Word Template image control - Get Attachments expects 0 - n attachments, so creates an apply to each loop for me when I get the attachment content.
I tried creating and setting an object variable to the data returned from Get Attachment Content, then using that for my image content control - but get the error "The image is not of type PNG or JPG. Please provide an image of type PNG or JPG."
If I populate the template inside the apply to each for the returned data from Get Attachments, everything works as anticipated.
Is there a way to set a variable to the desired attachment content? What type of variable, and how do I initialize & set it?