Skip to main content

Notifications

Community site session details

Community site session details

Session Id : A82CGvjo5vOtY7XT/6qeYR
Power Automate - General Discussion
Unanswered

How to use option set in power automate conditions?

Like (0) ShareShare
ReportReport
Posted on 11 Feb 2021 13:51:08 by 104

Hi all, 

I have created a flow in which i have to check the value of the option set using condition connector. I have choice field with choices as 100, 200, 300...etc.. When comparing if i use "fieldname is equal to 200", its not working. So i am using compose and checking the value for this particular option... Which is some number 9000182..and then using this number for comparison.

Is there any better way to do it?

 

Thank you... 

  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on 12 Feb 2021 at 08:57:32
    Re: How to use option set in power automate conditions?

    @varshinims08

    Please check below post to get the optionset label while using CDS Current environment.

    https://onlinemgblog.wordpress.com/2020/08/05/cds-current-environment-get-option-set-label/

     

  • varshinims08 Profile Picture
    104 on 12 Feb 2021 at 04:04:06
    Re: How to use option set in power automate conditions?

    @jinivthakkar, No its not resolved yet.

    As mentioned in some blogs, when choosing dynamic value there will be two fields... Claim type(value) and Claim type(type). And I should use

    Claim type(value) is equal to '200'.

     

    I am using CDS current environment trigger, and I only have Claim type  dynamic field... There is no value or type fields...

    I don't know what I have to do? 

  • jinivthakkar Profile Picture
    4,179 on 11 Feb 2021 at 16:03:40
    Re: How to use option set in power automate conditions?

    @varshinims08 it the issue resolved ?

  • varshinims08 Profile Picture
    104 on 11 Feb 2021 at 15:42:39
    Re: How to use option set in power automate conditions?

    @jinivthakkar

    Thank you for sharing... 

  • jinivthakkar Profile Picture
    4,179 on 11 Feb 2021 at 15:17:25
    Re: How to use option set in power automate conditions?

    @varshinims08 I dont have any dynamic value so I have initialized a variable and then I have checked the condition.

    jinivthakkar_0-1613056628015.png

     

     

  • varshinims08 Profile Picture
    104 on 11 Feb 2021 at 14:58:07
    Re: How to use option set in power automate conditions?

    @jinivthakkar  I am not sure whether its is int or string, I created a field in dynamics and datatype field selected 'Choice'....

    The condition i added in the above screenshot is working fine... What i did is taking claim type in compose, 

    963f788c-8981-4354-8296-79c541509ec6.png

    then copied the output of compose which is this number 912050001 into condition.

    What i wanted to know is, is there any alternative way to do this?

    Example : claim type is equal to 200

    But when i use value directly, it is always false. 

     

     

    Thank you

  • jinivthakkar Profile Picture
    4,179 on 11 Feb 2021 at 14:42:18
    Re: How to use option set in power automate conditions?

    @varshinims08 what is the data type if you are trying to compare number type to string than the condition will never satisfied ? What is the data type which is claim type ? Int or string ?

  • varshinims08 Profile Picture
    104 on 11 Feb 2021 at 14:23:53
    Re: How to use option set in power automate conditions?

    @jinivthakkar  Thank you for reply..

     

    This is the condition i am using... I hardcoded it

    a167ba88-02f0-4809-9818-156c89d195de.png

    And my fields data type is choice,

        I am checking whether the claim type is 200 or not. 

     

    Can you please tell me why you are using initialize variable, and can you can share the screen shot for it. 

  • jinivthakkar Profile Picture
    4,179 on 11 Feb 2021 at 14:16:18
    Re: How to use option set in power automate conditions?

    @varshinims08 I just tried comparing a dynamic value with 200 and it is working fine. My condition output is true as I have set the value to 200 in dynamic string.

     

    jinivthakkar_0-1613052892315.png

    What is the condition that you have ? Please can you share the screenshot?

     

    Please try like I have shown, hope this helps.

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
ankit_singhal Profile Picture

ankit_singhal 7 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 4 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 2 Super User 2025 Season 1

Overall leaderboard