I need to sign all 5 fields in my contract without a word but when it is time to send the error image
someone can help me
Hey,
which kind of contorl did you use in word? A picture or text?
Thanks
Hi @v-xida-msft
thanks for the great explanation. However, when I am trying to enter "(variables(variables('SignatureData'))" into the field for signature in the Word template I can't save the flow but get this error message instead:
"The template action 'Compose' at line '1' and column '1020' is not valid: The template function 'variables' is not expected at this location."
Can you please explain why it is neccessary to have "variables()" nested into another "variables()"? If I just use "variables('SignatureData')" I can save the flow but after running the flow I get the message that the image is not a valid base64 string.
Btw, the base64 string I am using is looking good (I can enter the string in Chrome and the image shows up)
Thanks again for your support.
Lukas
Hi @apctools ,
Could you please share a bit more about your scenario?
Do you want to populate a Pen Input image into your Word Template File using the "Populate a Microsoft Word template" action?
Regarding the issue that you mentioned, I think there is something wrong with the Pen Input Image content passed from your canvas app into your flow.
More details about how to populate a image content into a Word Template File, please check the following blog:
https://www.bythedevs.com/post/how-to-add-images-to-a-word-template-using-ms-flow
Within your canvas app, you should convert the Pen Input Image content into a base64 encoded data using JSON function, then pass the base64 encoded data to your flow. So in your canvas app, you should modify your 'Flow Name'.Run() function as below:
'Flow Name'.Run(
"xxxx",
"xxxx",
Substitute(Substitute(JSON(PenInput1.Image, JSONFormat.IncludeBinaryData), """", ""), "data:image/png;base64,", ""), // Pass the base64 encoded data of the Pen Input to your flow
"xxxx",
....
)
Then within your flow, you should add additional actions as below:
Please try above solution, then check if the issue is solved.
Regards,
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2