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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get file properties o...
Power Automate
Answered

Get file properties or used Get file content using path

(2) ShareShare
ReportReport
Posted on by 52

I’m trying to use “Populate a Microsoft Word Template” to insert a signature image into an already existing Word document in SharePoint, but I keep getting a “NotFound” or “The provided workflow action input is not valid” error. I’m already using Get file properties and selecting the Id for the file or used Get file content using path , but it still doesn’t work. What is the correct way to update an existing Word document with an image in Power Automate?

Categories:
I have the same question (0)
  • MS.Ragavendar Profile Picture
    5,017 Super User 2025 Season 2 on at
     
    Have you created the Word Template with content controls enabled?
  • CU13101239-0 Profile Picture
    52 on at
  • Suggested answer
    Tomac Profile Picture
    3,953 Moderator on at
     
    Please ensure you've followed the guidance for working with image content controls:
  • CU13101239-0 Profile Picture
    52 on at
    my problem now is that i cannot get the word file to edit it , not i cannot add an image
  • Tomac Profile Picture
    3,953 Moderator on at
    @CU13101239-0 Please post a screenshot of the expanded Populate action so we can see what you're doing in there, along with any expressions being used.
  • CU13101239-0 Profile Picture
    52 on at
    @ this is my problem now , Is the code writer's method correct? Note that if I remove the last comma, it shows "invalid"
     
     
  • Tomac Profile Picture
    3,953 Moderator on at
    @CU13101239-0 Try this for your dynamicFileSchema:
     
    {
    	"-1990316577": "<your dynamic Outputs content>",
    	"1066222620": {
    		"$content-type": "image/jpg",
    		"$content": "<your dynamic file content>"
    	}
    }
    Be sure to replace the parts in < > with your dynamic contents, but retain the quotes.
  • CU13101239-0 Profile Picture
    52 on at
    The situation remains the same, the output hasn't changed.
  • Tomac Profile Picture
    3,953 Moderator on at
    @CU13101239-0 Unfortunately, at this point we'll need to see much more of your flow to help resolve this issue. Screenshots of the whole flow, with full expanded actions that are relevant to this section including where you're getting the file content of the image.
     
    We will also need the XML from your Word file and the filetype (regular docx or a Word template file?)
     
    Partial screenshots will not be enough to figure out this issue.
  • Tomac Profile Picture
    3,953 Moderator on at
    @CU13101239-0 I just checked your duplicate thread on the issue and the additional information there is helpful. The action Get File Content Using Path returns the file content in base64, so you don't need to convert it to base64 in your flow. This may be causing your issue.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard