Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Answered

Difference between javascript and business rule

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?

  • Anmol Dave Profile Picture
    Anmol Dave on at
    RE: Difference between javascript and business rule

    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.

  • Verified answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Difference between javascript and business rule

    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/

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans