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:
- Download the latest release of CRM REST Builder from https://github.com/jlattimer/CRMRESTBuilder/releases and import the solution ...