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 / "Get File Metadata usi...
Power Automate
Suggested Answer

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

(0) ShareShare
ReportReport
Posted on by 179
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.
Categories:
I have the same question (0)
  • Suggested answer
    WBADAM03 Profile Picture
    179 on at
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard