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

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 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard