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 / contains always return...
Power Automate
Unanswered

contains always return true

(0) ShareShare
ReportReport
Posted on by 115

Hi,

 

i encountered that contains function always return true even the number/text is not exits in the array.

pleasee helpp. I have been trying for hourssssss

 

 

pityman_0-1631104417688.png

pityman_1-1631104507781.png

i have tried

contains(string(outputs('Compose_7')),string(outputs('Version_Label_2')))

contains(outputs('Compose_7'),outputs('Version_Label_2'))

contains(string(outputs('Compose_7')),outputs('Version_Label_2'))

contains(outputs('Compose_7'),string(outputs('Version_Label_2')))

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,505 Most Valuable Professional on at

    Hi @pityman,

     

    I would expect option 2 would work. I have set that up in dev environment and I was unable to reproduce your behaviour.

     

    Can you double check what is different in your setup compared to mine below?

     

    versionlabel2.png

     

    contains(outputs('Compose_7'), outputs('Version_Label_2'))

    option2.png

     

    Result of my test.

    optionisfales.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 60 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 54

#3
Expiscornovus Profile Picture

Expiscornovus 47 Most Valuable Professional

Last 30 days Overall leaderboard