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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Business Rules and Multiselect option field

(0) ShareShare
ReportReport
Posted on by 75

Hi guys,

I just discovered I cannot use business rules to a multiselect field. The idea is to show a mutliselect field on an account form based on a pick list from another field on the same form.

Questions:

  • which fields are not available in business rules set up
  • What is the workaround expect JavaScript

Cheers

I have the same question (0)
  • Suggested answer
    AJ-22040756-0 Profile Picture
    on at

    Hi Partner,

    Multiselect option set fields are currently not available for business rules set up.

    Reference link: https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/257411/how-to-apply-business-rules-to-a-multi-select-option-set?pifragment-97030=1

    Additionally you can refer this link wherein CRM idea has already created, https://experience.dynamics.com/ideas/idea/?ideaid=629df4af-e5c5-e911-b083-0003ff68bfb4

  • cloflyMao Profile Picture
    25,210 on at

    Hi rhipe,

    Except for MultiSelect Option Set field, Whole number and calculated field also cannot be used in Business rules.

    You can show a mutliselect field based on a pick list from another field on the same form with JavaScript.

    Here are steps.

    1. JS code

    function showmuitiselect(executionContext) {
        var formContext = executionContext.getFormContext();
        var selectedValues = formContext.getAttribute("new_samplemultiselect1").getValue();
        var control = formContext.getControl("new_samplemultiselect2");
        if (selectedOptionsValues == 0) {
            control.setVisible(false);
        }
        else {
            control.setVisible(true);
        }
    }
    

    2. Add your JavaScript code in a Script web resource.

    51.png

    3. Associate Script web resource to a form.

    52.png

    4.Test.

    Only when you select A in the Sample Multi Select1 field, the Sample Multi Select2 field will be shown in the form.

    53.png

    54.png

    Regards,

    Clofly

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 41

#2
Martin Dráb Profile Picture

Martin Dráb 38 Most Valuable Professional

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans