Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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!

  • ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: Condition if string (name) contains a certain letters

    @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.

  • bblake8480 Profile Picture
    642 Most Valuable Professional on at
    Re: Condition if string (name) contains a certain letters

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow