Skip to main content
Community site session details

Community site session details

Session Id : mdOC1jSXZVexbbYWW+Ms2h
Power Automate - Using Flows
Answered

If Function for multiple variables

Like (0) ShareShare
ReportReport
Posted on 21 May 2021 03:35:34 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 27 May 2021 at 03:28:09
    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 27 May 2021 at 03:21:34
    Re: If Function for multiple variables

    Hello @v-duann-msft 

     

    Thank you! It works

  • Verified answer
    v-duann-msft Profile Picture
    on 21 May 2021 at 08:01:15
    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 21 May 2021 at 07:48:42
    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 21 May 2021 at 05:56:06
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading complete