Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Workflow to accept only one flip switch selection and change status accordingly

Posted on by 165

I have three flip switch controls (all three of them are Yes/No options) and only one of them should be selected each time and change the status accordingly.
This is the workflow I've made so far, which works only until the first nested 'if'

if (switch1 equals [No] AND switch2 equals [No] and switch3 equals [No]), then:
    Change record status to: Case In Progress
Otherwise, if (switch1 equals [Yes] OR switch2 equals [Yes] OR switch3 equals [Yes], then:
    If switch1 equals [Yes], then:
        Change record status to: Case Switch1
        Update: Case (Switch2 to 'No' and Switch3 to 'No')
    Otherwise, if switch2 equals [Yes], then:
        Change record status to: Case Switch2
        Update: Case (Switch1 to 'No' and Switch3 to 'No')
    Otherwise, if switch3 equals [Yes], then:
       Change record status to: Case Switch3
       Update: Case (Switch1 to 'No' and Switch2 to 'No')

Any help would be greatly appreciated.

  • Verified answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Workflow to accept only one flip switch selection and change status accordingly

    Hi

    You could use two options data type fields and use business rules to clear the other two switches when one is selected, as shown below

    pastedimage1599083209550v1.png

    pastedimage1599083288076v2.png

    pastedimage1599083305584v3.png

    pastedimage1599083317275v4.png

    pastedimage1599083327997v5.png

    And then you could have the workflow to trigger on change of any of these three fields and have the logic to change the record status.

    pastedimage1599083515978v7.png

    pastedimage1599083506923v6.png

    pastedimage1599083965218v1.png

    Hope this helps

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans