Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

If Function for multiple variables

(0) ShareShare
ReportReport
Posted on by 58

Hello,

 

On my SharePoint List I have a Yes/No column with 10 entries. 

 

How can do a Power Automate Flow that does a condition that if any of the entries is yes, it will send an email. 

  • v-duann-msft Profile Picture
    on at
    Re: If Function for multiple variables

    Hi @annoying 

     

    HAHAHAHAH....I just start to check your details but you already make it works. 

     

    Anyway, thank you for all your time and patience. 😀

     

    Have a nice day!

     

    Best regards,

    Anna

  • annoying Profile Picture
    58 on at
    Re: If Function for multiple variables

    Hello @v-duann-msft 

     

    Thank you! It works

  • Verified answer
    v-duann-msft Profile Picture
    on at
    Re: If Function for multiple variables

    Hi @annoying 

     

    Thank you for your further information.

     

    Yes, that's similar. Here you are:

     

    List:

    v-duann-msft_0-1621583921256.png

     

    Flow :

    if(contains(variables('Choices'),'Yes'),'Yes','No')

    v-duann-msft_1-1621583962852.png

     

    After testing:

    v-duann-msft_2-1621584048775.png

     

    Hope it helps.

     

    Best regards,

    Anna

     

  • annoying Profile Picture
    58 on at
    Re: If Function for multiple variables

    Hello @v-duann-msft !

     

    What I mean was that for a column, any of it is Yes (as seen in the picture, the Jan column). Does it work the same?

    annoying_0-1621583281511.png

     

  • v-duann-msft Profile Picture
    on at
    Re: If Function for multiple variables

    Hi @annoying 

     

    Thank you for posting.

     

    According to your description, you would like to send email as long as one Yes/No column is equal to Yes.

     

    Please help to check is that what you want as below:

     

    I create 5 Yes/No columns in my list, you can create 10. The steps are similar.

    v-duann-msft_0-1621576516516.png

     

    Flow overview:

    if(contains(variables('response'),'True'),'yes','no')

    v-duann-msft_1-1621576516522.png

     

    If any entity equals to Ture, it returns yes.

    v-duann-msft_2-1621576516527.png

     

    If you have any further request, please feel free to reply me.

     

    Hope the content above may help you.

     

    Best regards,

    Anna

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,587 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow