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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans