Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Javascript & OData Microsoft Dynamics CRM

563 views

Published on

Javascript & OData in Microsoft Dynamics CRM

Published in: Software
  • Be the first to comment

Javascript & OData Microsoft Dynamics CRM

  1. 1. JAVASCRIPT & ODATA IN MICROSOFT DYNAMICS CRM 2015
  2. 2. AGENDA  JavaScript  OData
  3. 3. WHEN TO USE JAVASCRIPT In Form Scripts  Data Validation  Automation  Process enhancement and enforcement In Ribbon Command  Enabling rules  Displaying rules  Actions
  4. 4. JS CODE CONSIDERATIONS  Avoid unsupported code  Libraries as small as possible  Readable  Don’t access DOM  Use safe and efficient logic  Naming conventions & comments  Non blocking code
  5. 5. JAVASCRIPT CRM MODEL  Xrm.Page.context  Xrm.Page.data.entity  Xrm.Page.ui
  6. 6. ADDING JAVASCRIPT TO FORM
  7. 7. ODATA – THE BEST WAY TO REST  Introduced by Microsoft  Generic Queryable Endpoint for RESTful Services  Supports ATOM, JSON & JSON Verbose  Supports most of HTTP Verbs(GET, POST, PUT, DELETE, MERGE/PATCH)
  8. 8. ODATA SYNTAX  Endpoint / Service Root URI https://rbt1.crm5.dynamics.com/XRMServices/2011/OrganizationData.svc/ (Available at Developer Resources Section in CRM)  Syntax Service Root URI / Resource Path / Query Options  Example https://rbt1.crm5.dynamics.com/XRMServices/2011/OrganizationData.svc /Category(1)/Products /?$top=10&$orderby=name
  9. 9. THANK YOU!

×