Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Initialize Variable for Choice Field Not Working in Power Automate

(0) ShareShare
ReportReport
Posted on by 70

Hi,

I have a Choice field named 'Application Type', and when that field is modified, I want to trigger an action. So for that I used the trigger 'When a row is modified', and then I Initialized Variable for that choice field as follows (please refer screenshots)...

PowerUser06_5F00_1_2D00_1663627668186.png

Then I applied a condition on that Initialized Variable...

 PowerUser06_5F00_2_2D00_1663627765125.png

So if the value of the Choice field is a particular value, I want to trigger an action, but whether the value is equal to my chosen value or not, the result of the condition is always returning 'false', and the 'If no' action is the one that is always being triggered. 

Can someone please tell me what is wrong with my condition?

Thanks!

  • D365 User 06 Profile Picture
    D365 User 06 70 on at
    RE: Initialize Variable for Choice Field Not Working in Power Automate

    Anandhcrm

    Wow thanks a lot Anandh, that worked!!

  • Verified answer
    Anandhcrm Profile Picture
    Anandhcrm on at
    RE: Initialize Variable for Choice Field Not Working in Power Automate

    Since your variable is the string type, try to enclose with quotes. '248870003'

  • D365 User 06 Profile Picture
    D365 User 06 70 on at
    RE: Initialize Variable for Choice Field Not Working in Power Automate

    Abdul Wahab

    Thanks for your response. I opened one run history, it shows that the Trigger of my flow has captured both the values correctly. This is what is shown in the output...

    {

    "new_applicationtype": 248870003,

    "_new_applicationtype_label": "Extension"

    }

    The number 248870003 is the value for choice option label 'Extension'.

  • D365 User 06 Profile Picture
    D365 User 06 70 on at
    RE: Initialize Variable for Choice Field Not Working in Power Automate

    Amit Katariya007

    Thanks for your response. No its not a multi-select option set, just a normal one. I checked the trigger point's output, it seems to be picking the label and value of the compared value correctly. The number 248870003 is the value for choice option label 'Extension'. This is what is shown in the output...

    {

    "new_applicationtype": 248870003,

    "_new_applicationtype_label": "Extension"

    }

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,081 Moderator on at
    RE: Initialize Variable for Choice Field Not Working in Power Automate

    Hi D365 User 06,

    Check what value is given to you when the 'Power Automate' trigger. Open one run history this will give all the details.

    If you are using a multi-select option set then it is a special type. You can read about it more using the search: Power automate & multiselect optionset - Search (bing.com)

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform/Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 10,203 Super User 2025 Season 1 on at
    RE: Initialize Variable for Choice Field Not Working in Power Automate

    Are you using Multi-select option set or normal option set? 

    Because muti select option set will provide you array of options set values.

    Also check trigger point's output. If option set contains data or not. 

    Thank you, 

    Amit katariya. 

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 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans