Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Business rules don't work

Posted on by 10

Hi everyone!

This is the context. 

I created 2 business rules, both of them work in the same column. I had to divide in two rules diferents, because I need 10 conditions and theese only suport 9.

Basically, those work like this. If the column 'Cantidad' have a number between 1 or 10 show other columns 'Beneficiario'.

The trouble that I have is, when I activate the last one of business rules theese inactivate the other one. 

What I need to do for both of them work in the same moment?

 pastedimage1678136546217v3.png

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: Business rules don't work

    hi

    It sounds like the two business rules you created are conflicting with each other because they both apply to the same column.

    One solution could be to combine the two rules into a single rule that includes all 10 conditions. This would allow you to avoid the conflict between the rules and ensure that both rules are applied simultaneously.

    To do this, you can use the "OR" operator in your conditions to specify that any of the 10 conditions can be met for the rule to apply. For example, your rule might look something like this:

    If Cantidad equals 1 OR Cantidad equals 2 OR Cantidad equals 3 OR Cantidad equals 4 OR Cantidad equals 5 OR Cantidad equals 6 OR Cantidad equals 7 OR Cantidad equals 8 OR Cantidad equals 9 OR Cantidad equals 10, then show Beneficiario.

    By combining all of the conditions into a single rule, you can ensure that both rules are applied simultaneously and avoid any conflicts between them.

    Alternatively, you could try changing the column that each business rule applies to, so that they do not conflict with each other. For example, you could have one rule apply to Cantidad and another rule apply to a different column. This would allow both rules to be applied simultaneously without conflict.

    DAniele

  • Verified answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: Business rules don't work

    Hi Camilo,

    "when I activate the last one of business rules theese inactivate the other one"::

    --Is the status of the business rule directly 'Deactive' or is the status active but not working?

    I cannot reproduce your situation, both business processes can be active at the same time and can work normally.

    Please refer to my steps:

    --Creating two business rule and active them:

    pastedimage1678170241380v1.png

    pastedimage1678170263046v2.png

    --Check Code is right:

    IF
    Cantidad equals 1
    THEN
    Show field Beneficiario
    ELSE IF
    Cantidad equals 2
    THEN
    Show field Beneficiario2
    ELSE IF
    Cantidad equals 3
    THEN
    Show field Beneficiario3
    ELSE IF
    Cantidad equals 4
    THEN
    Show field Beneficiario4
    ELSE IF
    Cantidad equals 5
    THEN
    Show field Beneficiario5
    
    
    IF
    Cantidad equals 6
    THEN
    Show field Beneficiario6
    ELSE IF
    Cantidad equals 7
    THEN
    Show field Beneficiario7
    ELSE IF
    Cantidad equals 8
    THEN
    Show field Beneficiario8
    ELSE IF
    Cantidad equals 9
    THEN
    Show field Beneficiario9
    ELSE IF
    Cantidad equals 10
    THEN
    Show field Beneficiario10

    --Save and active them

    pastedimage1678168232616v1.png

    --Publish.

    --Test:

    pastedimage1678170124696v5.pngpastedimage1678170139496v6.png

  • SamiraM Profile Picture
    SamiraM 571 on at
    RE: Business rules don't work

    Can post your business rules screenshots here? Have you validated your business rule? and check its scope as well.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans