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 / Condition if string (n...
Power Automate
Unanswered

Condition if string (name) contains a certain letters

(0) ShareShare
ReportReport
Posted on by 92

Hi,

 

How do I create a condition that allows me to check if a string contains a specific 'name'? What I want is to have a condition that checks if there's a certain 3 letter identifier included in a string that's in a sharepoint list column.

 

Thanks!

Categories:
I have the same question (0)
  • Barret Profile Picture
    652 Most Valuable Professional on at

    You'll want to use an expression that uses the indexOf string function. Something like:

     

    indexOf(stringToSearch, stringYouAreSearchingFor)

     

    And you'll want to check if the result is >= 0. If it is, the string contains the search text. If the result is -1, it doesn't contain the text you are searching for.

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @acolyter 

    I agree with the solution provided by @barret but would like to add that you need to put single quotes around the string for which you are searching.

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard