Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Business Rule that tests Yes/No field

Posted on by Microsoft Employee

I'm trying to create a business rule that checks to see if the user has selected either Yes or No from a Two Option field. I have 5 of these and just need to verify that the user has specifically set all of them to either Yes or No. If they have left any of them as the -- default the test would fail and the action would not be triggered. If they have all been set then the action should fire. I thought this could be accomplished by creating a rule that looks like this:

If field 1 equals "No, Yes"

and Field 2 equals "No, Yes"

and Field 3 equals "No, Yes"

and Field 4 equals "No, Yes"

and Field 4 equals "No, Yes"

The problem is that unless they are all set to "No" the action will not be triggered. Am I missing something? I assumed that testing for both values in the Two Option field would work.

*This post is locked for comments

  • Verified answer
    ManirajKV Profile Picture
    ManirajKV 1,477 on at
    RE: Business Rule that tests Yes/No field

    Hi,

    If its Two-Option datatype, then by default it will be No. So you can't track, whether the user choosen or not.

    so try using Option-Set as datatype, there you will get YES,NO and Empty option. By Default these option set has empty value and make it mandatory. So that user will choose it. Then you can trigger your action or wtever functionality.

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans