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 (o...
Power Automate
Unanswered

Get file properties (only) with filter query

(0) ShareShare
ReportReport
Posted on by 4

Hi All,

 

I have a requirement to filter filenames from sharepoint site with searched filename (eg: Jennette Walls - XXXXX (O) May 14'24) in PAD. Searched_FileName:Jennette Walls - XXXXX (O) May 14'24

But, when i'm trying to use get file properties using filter query, it is throwing an error as 

substringof('%Searched_FileName%',FileLeafRef). This is because , i'm not able to ignore/skip apostrophe Jennette Walls - XXXXX (O) May 14'24 while filtering filename in sharepoint.

----------------------------

{
"StatusCode": "400",
"Message": "",
"Body": {
"status": 400.0,
"message": "The expression \"substringof('Jennette Walls - XXXXXX (O) May 14'24\r\n',FileLeafRef)\" is not valid. Creating query failed.\r\nclientRequestId: 56b0dba6-c618-4cc3-8a35-7d3407c5ee0a\r\nserviceRequestId: 56b0dba6-c618-4cc3-8a35-7d3407c5ee0a"
},
"Headers": {
"Vary": "Origin",
"X-NetworkStatistics": "0,525568,0,0,61674,0,34854",
"X-SharePointHealthScore": "2",
"X-MS-SPConnector": "1",
"X-SP-SERVERSTATE": "ReadOnly=0",
"DATASERVICEVERSION": "3.0",
"SPClientServiceRequestDuration": "60",
"SPRequestDuration": "60",

---

}

Files available in sharepoint as

Jennette Walls - xxxxxx (O) May 14'24

Jennette Walls - xxxxxx (O) May 14'24 (1)

Jennette Walls - xxxxxx (O) May 14'23

 

Expected output is:

Jennette Walls - xxxxxx (O) May 14'24

Jennette Walls - xxxxxx (O) May 14'24 (1)

 

Can someone help how to achieve this?

-Thanks

sharepoint-get file properties.png
PAD.png
I have the same question (0)
  • pradeepvarma Profile Picture
    55 on at

    The request syntax might be wrong.

    The expression \"substringof('Jennette Walls - XXXXXX (O) May 14'24\r\n',FileLeafRef)

     

    Try searching like 'Jeanette Walls*'
    where of course you would get few additional results. Now filter the list with the date which you require.

  • debo_16 Profile Picture
    4 on at

    I'm able to get the result of files if I only use substringof('Jennette Walls - XXXXXX (O) May 14',FileLeafRef).

    I get 3 results here:-

    Jennette Walls - xxxxxx (O) May 14'24

    Jennette Walls - xxxxxx (O) May 14'24 (1)

    Jennette Walls - xxxxxx (O) May 14'23

     

    I want to get the result all file versions for that person as well as that specific day.The result should only filter me out following 2 files from sharepoint.

    Jennette Walls - xxxxxx (O) May 14'24

    Jennette Walls - xxxxxx (O) May 14'24 (1)

     

    I also tried following , but it failed.

    substringof(replace('Jennette Walls - xxxxxx (O) May 14'24','''',''''''),FileLeafRef)

    debo_16_0-1715779714446.png

     

  • lbendlin Profile Picture
    8,716 Super User 2026 Season 1 on at

    escape the single quote with another single quote or with a backslash.

  • debo_16 Profile Picture
    4 on at

    could you please help me with the syntax?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 378

#2
Valantis Profile Picture

Valantis 329

#3
David_MA Profile Picture

David_MA 283 Super User 2026 Season 1

Last 30 days Overall leaderboard