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 properties fr...
Power Automate
Unanswered

Get file properties from SharePoint using the URL

(1) ShareShare
ReportReport
Posted on by 4

Hi,

 

I am trying to get the file properties from a SharePoint file from within my flow.  I have four pieces of information about the file.

  1. Site URL
  2. Source Relative URL
  3. Filename
  4. Full URL

This information is coming from the SharePoint Audit Log.

 

I have tried using the Send HTTP Request to SharePoint action, but whilst I can get information about the folder that the file sits in, I don't appear to be able to get any information about the file (the JSON output is []).

 

If I use the query

_api/web/GetFolderByServerRelativeUrl('subsitename/libraryname/foldername')?$expand=Folders,Files

 

I get the following (i have stripped out most of the output),

"Files": {

      "results": []

    },

"Exists": true,

    "IsWOPIEnabled": false,

    "ItemCount": 4,

 

So, it knows that there are files there, it just won't tell me anything about them.

 

Where am I going wrong?  Is there a better way to do this?

 

regards,

Simon.

 

Categories:
I have the same question (0)
  • lovespdev Profile Picture
    3 on at

    The correct API will be as follow:

    _api/web/GetFolderByServerRelativeUrl('subsitename/libraryname/foldername')/listItemAllFields?$select=Id,Title&$expand=Folders,Files

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard