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" doesn't wor...
Power Automate
Answered

"Contains" doesn't work on number array built with "Select"

(1) ShareShare
ReportReport
Posted on by 13

I'm building a flow that takes data from multiple SharePoint lists and combines it into one, either updating or adding as needed. As part of that, I was planning on using a Select function to get IDs from one list, then checks against the IDs of another using a Contains to see if the data has been imported yet. However, no matter what I try, none of the data coming from the Select triggers the Contains. I can get an array of [2, 3, 4], for example, and Contains will still say false if I ask it if 2 is in there. I've tried it on a stripped-down version of the flow, and Contains will not trigger if I get the data from the list, but if I hard-code in the EXACT SAME data, it works. I can get matches with a for-each and direct equals, but then I'd need to either use another nested loop so I can compare with both lists or use a filter and add another layer of complexity. I've also confirmed that this only happens with number columns; using it with a text column means it works as expected.

Categories:
I have the same question (0)
  • Verified answer
    chimera238 Profile Picture
    13 on at

    I found a solution: wrapping the field that went into the Select with an int() made the Contains work properly.

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @chimera238 

     

    That could be the data type issue. Did you try to convert using string()?

     

    Thanks

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard