Knowledge found and lost while working with Microsoft Dynamics CRM
RSS icon Home icon
  • Free Utility Released: Export JavaScript from CRM

    Posted on June 30th, 2009 mitch Print Print 2 comments

    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:

    image

     

    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:

    image

     

    Download it from the Free Utilities page.

    Customization, Dynamics CRM
    1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
    798 views
     

    2 responses to “Free Utility Released: Export JavaScript from CRM”

    1. 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

    2. 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

    Leave a reply