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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to use option set ...
Power Automate
Unanswered

How to use option set in power automate conditions?

(0) ShareShare
ReportReport
Posted on 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... 

Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @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.

  • varshinims08 Profile Picture
    104 on at

    @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,187 on at

    @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 at

    @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,187 on at

    @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 at

    @jinivthakkar

    Thank you for sharing... 

  • jinivthakkar Profile Picture
    4,187 on at

    @varshinims08 it the issue resolved ?

  • varshinims08 Profile Picture
    104 on at

    @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? 

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @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/

     

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard