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 content using...
Power Automate
Unanswered

Get file content using path image not populating word

(0) ShareShare
ReportReport
Posted on by 37
 

i am trying to get a file content using path to dynamically populate a word document with texts and image from a SharePoint list but Iam getting an error message file not found however if i select the image from the list directly the flow run successfully the file will be created.2.pngi.png

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    on at

    Hi, @hrhassan 

    According to your description, when you directly select the file in "Get file using path" , the flow run successfully.

    But when you use dynamic content , the file can not be found.

    Can you check if you pass the same file path in your flow run history in two conditions.

    vyueyunmsft_0-1710724230745.png

     

    Best Regards,

    Yueyun Zhang

     

  • hrhassan Profile Picture
    37 on at

    I inniated a variable and pass it to Jason to get file name

     

    So I used the path and added the variable name to dynamically get the file name from the http request I sent to SharePoint

     

     

    Screenshot_20240318-022946.jpg

  • v-yueyun-msft Profile Picture
    on at

    Hi , @hrhassan 

    Thanks for your quick response! When you directly select by the icon, What is the path to the file that appears:

    vyueyunmsft_0-1710725602439.png

    And can you check what's the value of your [ImageName] variable return in your flow run history?

     

    Best Regards,

    Yueyun Zhang

  • hrhassan Profile Picture
    37 on at

    My site name/site assets/lists / list id/ the files/ inside the list 

    So I removed the file and replaced it with the variable

     

    It returned 404 file not found

     

  • v-yueyun-msft Profile Picture
    on at

    Hi , @hrhassan 

    In my test, this should pass in the same path as if you had manually selected:

    vyueyunmsft_0-1710726070167.png

    Folder/SubFolder/fileName.fileextension

     

    So when you manually select the file here , dose the file path is the same with it?

     

    Best Regards,

    Yueyun Zhang

     

  • hrhassan Profile Picture
    37 on at

    Yes

    Screenshot_20240318-024452.jpg

  • hrhassan Profile Picture
    37 on at

    Please note I am getting the file from a SharePoint list not library or OneDrive 

  • v-yueyun-msft Profile Picture
    on at

    Hi , @hrhassan 

    Dose your [ImageName] expression return have the file extension in your side?

    vyueyunmsft_0-1710726467901.png

    xxxxx.png

     

    Best Regards,

    Yueyun Zhang

  • hrhassan Profile Picture
    37 on at

    No 

    Should I include it?

     

    And must the image be png always ?

     

    Thank you

     

  • v-yueyun-msft Profile Picture
    on at

    Hi , @hrhassan 

    Oh, not necessarily png, I mean, you need to pass the file name with the file extension, and you can check if the value your variable takes has a file extension.

     

     

    Best Regards,

    Yueyun Zhang

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard