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 / Sharepoint multi choic...
Power Automate
Answered

Sharepoint multi choice column, check if value exists in the selections.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi!

so, I'm pulling in data from a SharePoint list and have a multi select column it is just a choice of 1-12 to indicate months and trying to check if the current month is in the list but the "contains" in the condition here: 

miguelrodrigue_0-1612542673036.png

is always evaluating to false

 

I even did a join operation and emailed it to myself to check if the value is correct and it looks like it is

miguelrodrigue_1-1612544348550.png

the 2 twos is just grabbing this month and then I wanted to cast it to an int to check if it changed at all.

but I can't see a reason why it wouldn't be comparing the two

Categories:
I have the same question (0)
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Anonymous  pls check your condition in left side. This is a variable which holding month value. What is the type of variable here?

    Please 'Thumbs Up' the posts that helped you and 'Mark as Solution' if my post answered your question.

    @Hardesh

  • Verified answer
    tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @Anonymous ,

    with multiple choice columns it's a bit more complicated than simple 'contains' as the column doesn't contain just the values, but whole objects with the value (@odata.type, Id and Value).

    To check if a value is selected in a multiple choice column, I'd initialize a boolean variable and set it to 'false', then loop through all the values ('Choice Value' dynamic content) and compare it with the value. If it's equal, set the variable to 'true'. At the end of the loop, the variable will be either 'false' (not contains) or 'true' (value was among the choices).

    And don't use the int(...) expression for the value, try string(...) or nothing instead as the column/array values are of a string type by default.

    image.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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard