Working with the Web API

Another common use for JavaScript is to work with Dynamics 365 CE entity data. We can use the Web API, OData V4, which was introduced in Dynamics CRM 2016, or we can use Xrm.WebApi, which was introduced in Dynamics 365 V9. Let's say we have a requirement to copy an email from the primary contact in the customer form when the primary contact lookup is selected. Let's learn how to write JavaScript using both of these options. We can write these requests manually or we can use a community tool such as CRM REST Builder to write a Web API request. To use CRM REST Builder, follow these steps:

  1. Download the latest release of CRM REST Builder from and import the solution ...

Get Implementing Microsoft Dynamics 365 Customer Engagement now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.