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 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

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard