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

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Business Rule and Java scripts- Dynamics 365

    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

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Business Rule and Java scripts- Dynamics 365

    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
    Rawish Kumar Profile Picture
    13,758 on at
    RE: Business Rule and Java scripts- Dynamics 365

    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
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Business Rule and Java scripts- Dynamics 365

    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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans