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 CRM (Archived)

Business Rule fails when extra field incorporated

(0) ShareShare
ReportReport
Posted on by 12

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

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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

  • T.I.A Profile Picture
    1,760 on at

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

  • Jeroen J Profile Picture
    12 on at

    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?

  • Community Member Profile Picture
    on at

    You can create another rule

  • Jeroen J Profile Picture
    12 on at

    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

  • Jeroen J Profile Picture
    12 on at

    (sorry for the type in your name)

  • Suggested answer
    Community Member Profile Picture
    on at

    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
    12 on at

    Hi Ridhima (yes!),

    The scope of the business rule is Entity.

  • Jeroen J Profile Picture
    12 on at

    Hi Ridhima,

    the scope is Entity.

  • Jeroen J Profile Picture
    12 on at

    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

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans