Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

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

  • hailinliu Profile Picture
    5 on at
    Re: Get file content using path image not populating word

    Very good!!

    Sorry, always busy~~

  • hrhassan Profile Picture
    37 on at
    Re: Get file content using path image not populating word

    I did what you asked and it worked 

     

    thank you.

  • hrhassan Profile Picture
    37 on at
    Re: Get file content using path image not populating word

    i have resolved it thank you

  • hrhassan Profile Picture
    37 on at
    Re: Get file content using path image not populating word

    hi hailinliu,

     

    how do I output the expression ?

    hrhassan_0-1710755359389.png

     

     

     

  • hailinliu Profile Picture
    5 on at
    Re: Get file content using path image not populating word
    {
        "type""array",
        "items": {
            "type""object",
            "properties": {
                "name": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "link": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "id": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "type": {},
                "size": {
                    "type": [
                        "integer",
                        "null"
                    ]
                },
                "referenceId": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "driveId": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "status": {
                    "type": [
                        "integer",
                        "null"
                    ]
                },
                "uploadSessionUrl": {}
            },
            "required": [
                "name",
                "link",
                "id",
                "type",
                "size",
                "referenceId",
                "driveId",
                "status",
                "uploadSessionUrl"
            ]
        }
    }
  • hrhassan Profile Picture
    37 on at
    Re: Get file content using path image not populating word
    Spoiler (Highlight to read)
    I will try that and revert
    Thank you 
    I will try that and revertThank you 
  • Verified answer
    v-yueyun-msft Profile Picture
    on at
    Re: Get file content using path image not populating word

    Hi , @hrhassan 

    According to the screenshot , you get the fileName from "Send an http request to sharepoint" action.

    vyueyunmsft_0-1710727358649.png

     

    So, you need to see if there is a file name containing the file extension in the return of your "Send an http request to sharepoint" action.

     

    Best Regards,

    Yueyun Zhang

     

     

     

  • hrhassan Profile Picture
    37 on at
    Re: Get file content using path image not populating word

    Hello Sir,

    It doesn't have the extension

     

    Can you please show me how to pass the variable to get the file name with extension.

     

    Thank you for the support.

     

  • v-yueyun-msft Profile Picture
    on at
    Re: Get file content using path image not populating word

    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

  • hrhassan Profile Picture
    37 on at
    Re: Get file content using path image not populating word

    No 

    Should I include it?

     

    And must the image be png always ?

     

    Thank you

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow