Jun
30
Part of an upcoming commercial utility I am building exports custom JavaScript found in a CRM installation. I needed that functionality for a current customer project so I decided to go ahead and create a separate utility that performs that one function.
Here is the user interface:
JavaScript Extraction Rules
The JavaScript found within each entity will be extracted using the following rules:
- Only custom JavaScript is extracted. Built-in CRM JavaScript is ignored.
- JavaScript for the Form’s OnLoad and OnSave events will be exported.
- JavaScript for each Atttribute’s OnChange event will be exported.
- Only active JavaScript is exported. If you don’t have the Active checkbox on the event checked, it is ignored.
- If the JavaScript is Active but there is no JavaScript in the event, it is ignored.
Output Folder
A sub-folder will be created using the name of the CRM Organization in the folder where the utility is located.
Output Contents
Each event will be written to a separate file with a .js extension. The naming convention is:
OnLoad
<entity>_onload.js
OnChange
<entity>_<attribute>_onchange.js
Here is what the new Demo CRM VPC installation’s output looks like:
Download it from the Free Utilities page.
Nice tool,
Just want to inform you that mine could also interest you. It manages export and import of scripts.
http://mscrmtools.blogspot.com/2009/03/after-few-days-weeks-of-silence-i-am.html
You can fin other tools on my blog
Just found a really nice alternative tool for export and import of javascript, where you also can export the system javascript to modify the standard CRM behavior…
It can be found at,
http://blog.halan.se/post/CRM-Configuration-Manager.aspx
[...] Export JavaScript from CRM – exports all form-based active OnLoad, OnSave and OnChange custom JavaScript to a file. Useful for JavaScript version control. [...]
[...] Export JavaScript from CRM – exports all form-based active OnLoad, OnSave and OnChange custom JavaScript to a file. Useful for JavaScript version control. [...]
[...] Export JavaScript from CRM Filed under: CRM 4, CRM Tools [...]
[...] Export JavaScript from CRM – exports all form-based active OnLoad, OnSave and OnChange custom JavaScript to a file. Useful for JavaScript version control. [...]