25 Nov’19

D365 General10 Best Practices for implementing HTML web resources with Dynamics 365 CRM

    1. Do not use any CDN links for any .js or .css file, include them in your own project.
    2. Do not give multiple references of any .js or .css file on the same HTML.
    3. If any .js or .css file is going to be used on multiple Html web resources, then keep them at one common location and include the same URL reference on all the HTML page, do not try to create same web resources repeatedly.
    4. Always try to write minimum codes and re-use the code where possible.
    5. Always try to use objects where possible.
    6. Minimize the use of global variables (use local variables).
    7. Avoid multiple API hits try to get maximum data in a single hit where possible.
    8. Use joins in fetch XML queries to get data from all the related entity to avoid multiple API hits.
    9. Use Try and catch for exception handling.
    10. Minify .js and .css file before releasing the same on production.
Written by

Tejesh Sharma

D365 CRM Consultant

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • How to create Dynamics 365 Finance & Operations (formerly Dynamics AX) connection in SSIS

    12 December’ 2019

    Introduction: Creating a Connection is one of the first Steps during the integration of data. While performing Integrati...

    Read more
  • How to create AX (D365 F&0) Connection in SSIS

    12 December’ 2019

    Introduction: Creating a Connection is one of the first Steps during integration of data. While performing Integration w...

    Read more
  • First cut review of new D365 Project Service

    12 December’ 2019

    The new Project Service coming up is a much-advanced version of PSA. Even more, than it will be called as Project Servic...

    Read more
  • Business Central Wave 2 Features – Section 4

    11 December’ 2019

    Introduction: In this blog, I will be attempting to provide information about the new Modern Client features of Business...

    Read more
  • Business Central Wave 2 Features – Section 5

    11 December’ 2019

    Introduction: In this blog, I will be attempting to provide information about the new Modern Client features of Business...

    Read more

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close