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 / Search some strings in...
Power Apps
Answered

Search some strings in a text field

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I wish to find a string into a text field, but i need to evaluate if the text field contains more than one key, for example:

 

The text field could have the next string: "S4W10001" or "S4W11001" or "S4C00001" or "S4C01001", etc.

 

So, I have the next code:

 

If("W10" in FieldText.Text, "Y", "N") -> True, the first string "S4W10001" contains "W10", but false for example in second example because it contains "W11".
 
So, i have try:
 
If("W10" Or "W11" in FieldText.Text, "Y", "N") -> False, because only find the last ocurrence.
 
Any advice to find some values in a string?
 
Thanks!

 

Categories:
  • Verified answer
    shoog Profile Picture
    2,164 on at

    You have to repeat the field to search in, this will work:

    If("W10" in FieldText.Text Or "W11" in FieldText.Text, "Y", "N")

     

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

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard