Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

"Get File Metadata using path" falsely gives me a 404, at a loss

(0) ShareShare
ReportReport
Posted on by 177
Hi all,

I know there are several posts about this, but I am stuck even after viewing them all.

I have a flow that requires a step to see if a file already exists by a user, then goes into a conditional to handle it.

On my "yes" side of the conditional, I need to grab the "Id" of a file so that I can grant permission to a user. That connector requires specifically the "Id" of a file.

The issue I am having is that this stage, I only have the file name and document library, so I need to find the Id of a file in a document library using path.

I checked sharepoint and my path is: https://(sharepoint)/sites/(my site name)/(folder)/Sharepoint_ID_4200.docx 

The issue I am facing is that my "Get file metadata using path" results in a 404 every run, even when the file exists. 

When I type the whole path (I found via sharepoint), of https://(sharepoint)/sites/(my site name)/(folder)/Sharepoint_ID_4200.docx , my web browser will download the file. I can also confirm that Sharepoint_ID_4200.docx exists visually in my document library.

My inputs:

site address (URL of the sharepoint site, from a dropdown)

Path: /(folder)/@{variables('File')} 

File is provided in a string variable and the input at this stage is a string of "Sharepoint_ID_4200.docx" with no spaces. 

I'm at a loss on what to do here, I need to find the "Id" of a specific file using only the location and name of a file, so I assumed by path would be a good approach, but it refuses to acknowledge most file existence when I can visibily see the file existing in the library.
  • Suggested answer
    WBADAM03 Profile Picture
    177 on at
    "Get File Metadata using path" falsely gives me a 404, at a loss
    I never figured out why it wouldn't find this on this connector, but eventually it worked. I know that's not helpful, but it's the truth. Who knows why it works now?

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >