web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Populate Word Template...
Power Automate
Answered

Populate Word Template with an image: How to implement using dynamic files (dynamicFileSchema)

(0) ShareShare
ReportReport
Posted on by 25

Hello All,

 

I am new to Power Automate. I am trying to establish a flow that automatically populates a word template with a digital signature using dynamicFileSchema after it has been filled and submitted via Approvals. I however get the error "

The image is not of type PNG or JPG." I have used a variable and I have also used the get File content from path but all to no avail. Your help will be very much appreciated. see attached images.
1.jpg2.jpg3.jpg4.jpg
Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @OheneSiaw ,

    Do you have an image control in your template?

     

  • OheneSiaw Profile Picture
    25 on at

    Yes I do. That is the one with the  ID "866801378" with the red rectangle.

    3.jpg

  • OheneSiaw Profile Picture
    25 on at

    @SudeepGhatakNZ Please do you have any solution to this problem?

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Can you try base64 conversion in your varSignature

    {
    "$content-type":"image/jpeg",
    "$content":"base64(outputs('Get_file_content_using_path')?['body'])"
    }

     

  • OheneSiaw Profile Picture
    25 on at

    Hi @SudeepGhatakNZ ,

    I have tried various options using the base64 conversion but it's still not working. I don't know if I am doing anything wrong. Please see the images below including the error message.

     

    5.jpg6.jpg7.jpg8.jpg9.jpg

  • OheneSiaw Profile Picture
    25 on at

    Hello @AlexEncodian ,

     

    Thank you for your input. I have tried that but it gives me the error:

    {
      "status": 400,
      "message": "The image is not of type PNG or JPG. Please provide an image of type PNG or JPG.\r\nclientRequestId: 10322991-d26f-4af2-8a86-75ee49fbed89",
      "error": {
        "message": "The image is not of type PNG or JPG. Please provide an image of type PNG or JPG."
      },
      "source": "wordonlinebusiness-sn.azconn-sn-001.p.azurewebsites.net"
    }.
     
    See image below:

    10.jpg

     

  • AlexEncodian Profile Picture
    4,409 Moderator on at

    @OheneSiaw 

    We can't see your input but can you attach the image?

  • OheneSiaw Profile Picture
    25 on at

    @AlexEncodian 

     

    Please see input image attached.

     

    11.jpg

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Okay I see the issue. You don't need the variable. You also don't require Base64 conversion. See the steps below

     

    SudeepGhatakNZ_0-1714688241441.png

     

    SudeepGhatakNZ_1-1714688251561.png

     

    SudeepGhatakNZ_2-1714688293735.png

    SudeepGhatakNZ_3-1714688314452.png

     

  • OheneSiaw Profile Picture
    25 on at

    @SudeepGhatakNZ 

    Thank you for the suggestion but unfortunately, this does not fit my scenario.

    You see, the template I am using is for a memo that will be used by different users and submitted for approval via the flow. As such, users will resave the template with different names depending on the inputs of the memo. With that said, I can't use this suggestion since the submitted templates will have different names although they will be saved to the same location on SharePoint. That is why I need to use the dynamicFileSchema option.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 432

#2
11manish Profile Picture

11manish 313 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 154

Last 30 days Overall leaderboard