Skip to main content
Community site session details

Community site session details

Session Id : L7Ks4GrYankmmckgpgil/q
Power Apps - Building Power Apps
Answered

pen input in a word document

Like (0) ShareShare
ReportReport
Posted on 3 Sep 2020 19:59:38 by

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 

 

 

 

 

 

Capturar.PNGasa.PNG

  • Lukas1 Profile Picture
    190 on 24 Mar 2021 at 14:33:33
    Re: pen input in a word document

    @fluvio , I used a picture control element.

  • fluvio Profile Picture
    54 on 22 Mar 2021 at 11:18:22
    Re: pen input in a word document

    Hey,

     

    which kind of contorl did you use in word? A picture or text?

     

    Thanks

  • Lukas1 Profile Picture
    190 on 02 Mar 2021 at 11:54:44
    Re: pen input in a word document

    Hi @v-xida-msft ,

     

    I found this helpful reply from you and it works perfectly!

  • Lukas1 Profile Picture
    190 on 02 Mar 2021 at 10:46:40
    Re: pen input in a word document

    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

  • Verified answer
    v-xida-msft Profile Picture
    on 04 Sep 2020 at 07:36:48
    Re: pen input in a word document

    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

    https://flow.microsoft.com/en-us/blog/intermediate-flow-of-the-week-create-pdf-invoices-using-word-templates-with-microsoft-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:

    2.JPG

     

    Please try above solution, then check if the issue is solved.

     

    Regards,

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.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading started