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 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,290 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 378

#2
Valantis Profile Picture

Valantis 329

#3
David_MA Profile Picture

David_MA 283 Super User 2026 Season 1

Last 30 days Overall leaderboard