Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to add a switch case on flow?

Posted on by 65

Hi, 

I have 2 environments. I want to create record in Env 2 when we create record in Env 1. One of the field is option set which is copying incorrectly because of different values? 

For example: 

ENV-1

fieldName - Fruit Type 

Apple, Value = 1

Banana, Value = 2

Mango, Value = 3

ENV-2

fieldName - Fruit Type 

Apple, Value = 4

Banana, Value = 2

Mango, Value = 3

 

How do I use a switch case to change the value so that flow copies Apple from Env-1 to Env-2?

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to add a switch case on flow?

    Hi Prajwal,

    Maybe you can change value of the Apple option directly in the Env 2, then you can leave this flow unchanged

    Go Settings > Customizations > Customize the system > entities > the entity you need > Fields to open the option set field:

    pastedimage1663558815374v3.png

    pastedimage1663558772240v2.png

    Or you can add one condition to check the value of the option set from Env 1, if the value is 1(Apple), then set  value=4 in the next action.

    Maybe you can provide screenshot about your flow, then i can know where to add the condition step.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans