Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Business Rule fails when extra field incorporated

Posted on by 415

Hi guys,

I was wondering if anyone recognizes this issue.

I've created a Business Rule on our mail account form. Depending on a picklist value it sets a few fields on "business required". If another picklist value is selected, the fields return to their original state "not required".
So far so splendid.

Now, I want to add a new field that must be set to required or not, exactly as the other fields above. After saving and activating the Business Rule, it seems to be doing eeeerm nothing. I remove the new field and it works, put it back and it fails again (I guess, for it doesn't do a thing).

The extra field is a regular option set, nothing weird to be seen.

Any ideas what I'm forgetting here?

Thanks for thinking along.
Best regards,
Jeroen

*This post is locked for comments

  • Jeroen J Profile Picture
    Jeroen J 415 on at
    RE: Business Rule fails when extra field incorporated

    Solved it!

    Took me quite a while, but I found out that the field that's to change (verzendwijze) is not on the form. The field that I wanted to change has 'verzendwijze' as label, but is known as "address2_shippingmethodcode".

    Thanks for sticking with me in this quest!

    Regards,

    Jeroen

  • Jeroen J Profile Picture
    Jeroen J 415 on at
    RE: Business Rule fails when extra field incorporated

    Hi Ridhima,

    the scope is Entity.

  • Jeroen J Profile Picture
    Jeroen J 415 on at
    RE: Business Rule fails when extra field incorporated

    Hi Ridhima (yes!),

    The scope of the business rule is Entity.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Business Rule fails when extra field incorporated

    Hi,

    Have you tried to change the value of Relation Type = "Groepsrelatie - geen klant" on record i mean  what is the scope of this business rule?

    Thanks,

    Ridhima

  • Jeroen J Profile Picture
    Jeroen J 415 on at
    RE: Business Rule fails when extra field incorporated

    (sorry for the type in your name)

  • Jeroen J Profile Picture
    Jeroen J 415 on at
    RE: Business Rule fails when extra field incorporated

    Hi Righima,

    I have been testing with your suggestion, and it does narrow down the issue a bit.

    I created another rule with only this particular field being required or not depending on the relation type of the account. And it just does not work.
    This is my rule:

    10_2D00_12_2D00_2018-10_2D00_38_2D00_32.png

    which means as much as:

    IF...THEN
        CONDITION
            If Relation Type = "Groepsrelatie - geen klant"
        ACTION
            Set "Verzendwijze" to not required
    ELSE
        CONDITION
        ACTION
            Set "Verzendwijze" to required

    (I also tried filling in the Else Condition, with same results)

    But, it's as if the entire rule isn't there (ofcourse I saved and activated).

    Any more ideas?

    Regards,

    Jeroen

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Business Rule fails when extra field incorporated

    You can create another rule

  • Jeroen J Profile Picture
    Jeroen J 415 on at
    RE: Business Rule fails when extra field incorporated

    hi,

    thanks for your quick respones.

    @Ridhima, there are no conditions in the Else statement. It's rather straight forward:

    6_2D00_12_2D00_2018-12_2D00_46_2D00_36.png

    (don't think readability is an issue, it's about the amount of conditions and actions)

    @T.I.A, the rule works with these 5 fields on both sides of the ELSE. As soon as I enter a 6th field, it stops processing immediately. Could the 6x2=12 really be an issue? Should I split it up into two rules?

  • T.I.A Profile Picture
    T.I.A 1,760 on at
    RE: Business Rule fails when extra field incorporated

    is the business rule looking at the correct field? Could there be another field with a similar name?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Business Rule fails when extra field incorporated

    Hi,

    How many conditions you are using in one Business Rule?

    Because the number of Else statements in a business rule is limited to 10

    Thanks

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans