For this I have created a simple Hello World program with Java Script. Just follow below steps.
1. From you CRM environment goto Settings > Customization > Customize the system
2. go to Web Resource.
3. Create a New Web Resource.
4. Give the name, Display Name and Description of the web resource. Select Script (Jscript) as the type of web resource. Then Click on the Text Editor Button.
6. Now, we have to call the JavaScript function from the form load event of Account form.
7. Navigate to Account main form and open it
8. Select the Form Properties from the ribbon.
9. In the form properties first we have to add a new Form Libraries. To do this click on Add and then select the web resource we have just created.
10. Then in the Event Handler section write the function name of the JavaScript and click on OK.
11. Then click on, Save > Publish > Save & Close.
12. Now from work place if we click Account > New to open any New Account form, the script will execute and show an alert with "Hello World".
1. From you CRM environment goto Settings > Customization > Customize the system
2. go to Web Resource.
4. Give the name, Display Name and Description of the web resource. Select Script (Jscript) as the type of web resource. Then Click on the Text Editor Button.
6. Now, we have to call the JavaScript function from the form load event of Account form.
8. Select the Form Properties from the ribbon.
9. In the form properties first we have to add a new Form Libraries. To do this click on Add and then select the web resource we have just created.
10. Then in the Event Handler section write the function name of the JavaScript and click on OK.
11. Then click on, Save > Publish > Save & Close.
12. Now from work place if we click Account > New to open any New Account form, the script will execute and show an alert with "Hello World".
*** Thank You ***

No comments:
Post a Comment