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 / ‘Contains’ not working...
Power Automate
Unanswered

‘Contains’ not working with OData filter query as expected with List all items present in table Fin and Ops action

(0) ShareShare
ReportReport
Posted on by 6

Hi all,

 

I’m trying to perform the following filter query on the ‘List all items present in table’ Fin and Ops action:

 

contains(Comments, '@{variables('toFind')}')

 

However, nothing is being returned, even if the toFind variable contains a real substring of the field.

 

Even more strangely is that if I use a filter array after finding all records with the following parameters:

 

item()?['Comments'] contains  "variables('toFind')"}]}

 

I get the exact result I expect, however I need to be filtering with the List all action, so this is not suitable.

 

Does anyone know how I might fix this or other approaches I can try? Thank you!

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

    Hi @Alex1171,

     

    Some list actions don't support all the OData functions. For example I know the contains cannot be used in the SharePoint Get Items action OData filter query. In that action you can use the substringof function instead of the contains function. 

     

    Maybe that is the same case with the FinOps List all items present in table action. Have you tried the substringof function instead?

  • Alex1171 Profile Picture
    6 on at

    Thanks for the reply! @Expiscornovus so even more strange it works fine on other fields in the table with the exact same syntax so it specifically seems like somethings up with the comments field. I tried substringof but that doesn't seem like a support function for F&O ODate queries.

  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @Alex1171,

     

    Yes, than it sounds like to be more of a field type of thing. I need to refresh my memory on comments/notes fields of F&O, it's been a while since I configured that application. Let me double check that part.

     

    In the meantime be aware that the substringof function is an odd one from a syntax point of view. While most functions would list the field as the  first parameter.

     

     

    contains(MyField, 'test')

     

     

    The substringof function lists the value as the first parameter

     

    substringof('test', MyField)

     

     

  • Alex1171 Profile Picture
    6 on at

    Hey @Expiscornovus yep I tried with that syntax and still get an error. I'm guessing it must be data specific since I'm not having issues with the other fields, at a bit of a loss. Thanks for your help again.

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