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 and Java scripts- Dynamics 365

(0) ShareShare
ReportReport
Posted on by 3,710

Hey,

I have doubt on Business rule, whether it works on form load, on change of fields and on save as similar to

java script? What are the restrictions of the same, an another doubts is that which will be executed the java-script which wrote or the Business Rule applied for the entity

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Kishore,

    Business rule doesn't trigger on save. Javascript will execute first.

    Refer this blog on the same topis,

    www.c5insight.com/.../business-rule-or-javascript-in-dynamics-crmthat-is-the-question.aspx

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    Hi Kishor ,

    Most of the answers you will find here :

    www.c5insight.com/.../business-rule-or-javascript-in-dynamics-crmthat-is-the-question.aspx

    business rule can also be triggered on save if you set the scope to "entity"

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hello Kishor,

    As per MSDN -

    If you use the business rule editor to modify a business rule that has been programmatically set to be applied on the Save event, it will revert to either load or change. You must re-apply the change programmatically to have the rule applied on the Save event.

    msdn.microsoft.com/.../dn481574.aspx

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi KIshor,

    The logic defined in the Business Rule is translated into JavaScript and appliedto form so that rules are checked both when the form loads & during field's OnChange event.

    When both Business Rule and some JavaScript is applied to the same event on a field, the Business Rule comes out on top.

    Hope it helps:)

    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

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