web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sharepoint multi choic...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

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
    Re: Sharepoint multi choice column, check if value exists in the selections.

    @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,185 Most Valuable Professional on at
    Re: Sharepoint multi choice column, check if value exists in the selections.

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard