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 :
Service | Customer Service, Contact Center, Fie...
Answered

Difference between javascript and business rule

(0) ShareShare
ReportReport
Posted on by 153

Hello,

I wanted to know to is there any difference if I choose javascript for showing or hiding the fields in instead of business rule?

I have the same question (0)
  • Verified answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    There is no difference. The advantage of using Business Rule is you don't need any developer to write the code. Any non-developer can also design Business rule.

    Also, You don't need to modify your code when you get any request to change the logic. You simply update your business rule. You should always focus on no-code approach first for your requirement to reduce technical debt.

    You should keep in your mind that not everything can be achieved using Business rule which can be done in javascript.

    community.dynamics.com/.../limitations-of-business-rules-in-dynamics-365

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Anmol Dave Profile Picture
    on at

    Hello Prashanth,

    There would not be much difference the only difference would be JavaScript would be your custom code and the business rule is OOB functionality.

    Now I would go with what the product provides because if in future any issue MS can help debug it but if its JS causing issue you will have to debug on your end as it would be custom.

    And also, both Business rules and JavaScript execute as JS files only in the backend.

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 39 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans