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 / Stuck with Contain fun...
Power Automate
Answered

Stuck with Contain function in Filter Query

(0) ShareShare
ReportReport
Posted on by 15

I have a flow that's working as intended however I want to add an extra filter to the Filter Query. I've tried to create a 'collection' so it can identify which CV's in various sub folders are current and which are superseded. I made an additional column in my SharePoint for users to class as CV or SS. 

 

As seen below:

 

AmeerKhan_1-1643118335126.png

 

My filter query for Modified le works fine however the 'and contains(collection, value)' I'm struggling to get working. I made that Status column thinking it would act as a collection and I can read the value 'CV'.

AmeerKhan_0-1643118159811.png

 

However I get the error message return "Column 'False' does not exist."

 

Any ideas?

 

EDIT: I can also try and get people to rename their files so their current one contains 'CV' and others should be called 'SS' however I also couldn't use 'Name' as a collection!

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,871 Most Valuable Professional on at

    Hi @AmeerKhan,

     

    Can you try substringof in the OData filter query?

    substringof('CV',Status)

     

    substringof_getfilespropertiesonly.png

     

  • AmeerKhan Profile Picture
    15 on at

    Hi @Expiscornovus that works perfectly! I'm thinking as a tweak however, to make it more streamlined. I can get users to just Check Out the file and I can somehow filter by that. I can see in my Output data there's a criteria that reads:

    {IsCheckedOut}": false,

     

    I tried to use substringof('false',IsCheckedOut) but no luck. Is this because the Check Out status isn't a column which is what the error being returned is also saying? Is there an alternative expression I can use to just check 'IsCheckedOut' true/false?

     

  • Verified answer
    Expiscornovus Profile Picture
    33,871 Most Valuable Professional on at

    Hi @AmeerKhan,

     

    Curly braces/brackets and the OData filter query. I am not really sure if that works pretty well together.


    Instead you could try and check for another field instead, the CheckoutUser.

     

    Try this filter:

     

    Modified le '@{addDays(utcNow('yyyy-MM-dd'),1)}' and CheckoutUser eq null

     

  • AmeerKhan Profile Picture
    15 on at

    That's great, also worked. I tweaked it to CheckoutUser ne null but does exactly what I need. Thank you very much!

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 May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard