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 Apps / Check if string contai...
Power Apps
Unanswered

Check if string contains any of the substrings in the list

(1) ShareShare
ReportReport
Posted on by 6
I have a Dataverse table with more than 5000 records. The canvas app I am building have a search screen which allows users to search for movie titles that contains specified string. Users can use multiple search strings separated by ";".
 
For example, if I have a movie tile called "Casablanca" and if users type "as; ap", it should return the record since "Casablanca" contains the string "as". However, if they specify "ap; bu", this record will not be returned.
 
I have the following filter condition which is working with warning:
 
Filter(
    MovieTitles,
    IsBlank(TitleTextInput.Value) || Sum(ForAll(Split(TitleTextInput.Value, ";"), If(Trim(Value) in rxj_primarytitle, 1, 0)), Value) > 0,
)
 
However, the above condition results in a delegation warning.
 
Is there any way to search without delegation warning? Any suggestions?
 
 
Categories:
I have the same question (0)
  • abc 123 Profile Picture
    784 Moderator on at
    I'd probably Split() the search values and put them into something that could then be used by ForAll().
    Then use the ForAll() to Collect the titles that match each of the split patterns.
    Finally, do a Distinct() to extract the unique values.
    Probably want to sort it prior to showing the user. Weave one of those in somewhere.
     
    I haven't fully researched the use of Ungroup() yet, but this is the second time I've seen it used.  Give this a good read and see if it scratches the itch:
     
     
     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard