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 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
    789 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard