This project is read-only.

Please follow the below steps for using the XRM snippet library.

 

  • Go to Downloads section of the page and download the XrmSnippets.zip file.
  • Extract the archived file and you should be able to see the snippets inside the extracted folder as shown in the screenshot below.

image

  • Open visual studio. Go to Tools –> Code Snippets Manager.

image

  • In the code snippets manager dialog box, click on Import and select the snippets extracted previously

image

  • Once done, click on Finish to close out the dialog.
  • Now Open a javascript file in visual studio and type the keyword CRM_. You would find a host of utility snippets related to the XRM object model.

image

  • Once the appropriate snippet is selected, just TAB out twice and the actual method body would be put in the studio.

image

image

  • The placeholders to be replaced will be highlighted. Put appropriate values in the placeholders and you are done!

image

Last edited May 28, 2015 at 6:30 PM by debajdu, version 2