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

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

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard