![]() ![]() The code was refactored but some of the Javascript files which were no longer used were not removed. The reason the project is in this state is we quickly needed to optimize the code and whilst doing this the Javascript was optimized and refactored, this has resulted in some of the Javascript files not being needed I recently worked on a project which had gone through some optimization and refactoring, my current task is finding out if all the Javascript files are needed for each of the forms. I go through the process in this video from Hosk CRM Dev Youtube channel The Microsoft Developer toolkit brought big improvements which allowed you to deploy/update Javascript file changes from Visual studio. It should be noted this isn’t a new problem for CRM 2015/2013, there have been lots of tools created to help the process.ĬRM MVP Mitch Milam created the export Javascript file tool, which I hada used in older versions of Microsoft Dynamics CRM, which you can read about here One method is to write the Javascript file in Visual studio then you copy the Javascript file and paste it into the CRM form changes, save and publish. Javascript development and Javascript deployment can be a bit disjointed. ![]() You can click the fields in the CRM form and check if there is an OnChange event. One of the reasons this is difficult is because the CRM UI means it’s not easy to see what fields have Javascript functions triggered via the OnChange event and the only way is to either look at the Javascript files and hope the CRM Developer has used a logical naming structure. There are many different areas Javascript can be used but it can be difficult to see what Javascript files are used and linked to field OnChanges, ribbon buttons. Javascript triggered in form OnLoad/OnSave events. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |