[TOOLS] JavaScript Migrator
- Amraoui Hamza
- Aug 23, 2021
- 2 min read
Updated: Aug 26, 2021
Save your time by using this JAVASCRIPT MIGRATOR tool

What is the JavaScript Migrator ?
JavaScript Migrator is a XrmToolbox tool developed by Taha Merey, that offers a bunch of functionalities related to JavaScript Web Ressources migration:
It helps you calculate the time (in hours) that the migration might take when it’s done manually.
It identifies the block of code that needs to be reviewed.
It analyses the script and automates the following:
Highlight/Replace deprecated client APIs by the corresponding ones based on Microsoft recommendations.
Migrating all the functions and their contents.
How to get started?
Here are some steps to do once you install JavaScript Migrator plugin from XrmToolbox Store.
1. Retrieve the web ressources from a specific solution you already prepared:

2. After selecting the solution, the tool will gather from the CRM, all the needed information: List of web ressources, Entities metadata, Ribbon Events, and Form Events.
When selecting a web ressource from the left panel (1), the tool will analyse and migrate the script.
On the top right panel, you can see the script you selected (2).
On the bottom right you can see the migrated code (3), and all the functions that are being called from either ribbon events (commend/rule) or form events.

3.To update the web ressource and its related events, you can choose between updating the elements directly (1), or adding them to a queue to be pushed later, after you have analysed multiple scripts (2).
When adding the web ressource to the queue, it will appear on the left panel with options you selected (3).
At any moment, you can remove the script from the queue (4), and also unselect it (3).
After adding multiple scripts to the queue, you can update all the web ressources, with options you have chosen, by clicking on the update button (5).

You can also analyse all the web ressources and get an estimation of the work amount that needs to be done (button Analyse/Export). The result can be extracted in an Excel file.

i hope it helps.
Comments