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 / [HELP] - GET SPECIFIC ...
Power Automate
Unanswered

[HELP] - GET SPECIFIC STRING VALUE USING EXPRESSION CONTAINS

(0) ShareShare
ReportReport
Posted on by 195

Hello Everyone

Good day!

I would like to seek for your help regarding on how to get value inside array using an expression.

 

I have an array that contains string.  

 

Example array 

 

Example list values
list = ["item bag", "item shoes", "pencil", "paper"]

I have an expression : But below results to false
and(contains(variables('testArray'), 'pencil'), contains(variables('testArray'), 'paper'))

what I want is to result to true. which means all string with an "item" should be check/included so the result will be true.

How to achieve that? 

Thanks for your help in advance

 

Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @YamiteKudasai please check this blog, why it returns false while just trying to check if the array contains 'item', it will return true only if you try to check if it contains exact value e.g. 'item bag', 'item shoes'

     

    https://manueltgomes.com/reference/powerautomate-function-reference/contains-function/

     

    But if you still want to check, have a foreach loop, add a compose and compare each item with your string which will then work the way you are expecting

    jinivthakkar_0-1646819587601.png

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

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

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard