Query Dynamics CRM through JavaScript with WebAPI
Following on from Querying Dynamics CRM through JavaScript using the OrganizationService, we will now go through an example using the new Web API. We will use this URL to get the full web service URL: var url = Xrm.Page.context.getClientUrl() + “/api/data/v8.1/”; We will use the Id of the record: var Id = Xrm.Page.data.entity.getId(); Our Web API filter is constructed like below: https://yourcrm.crm.dynamics.com/api/data/v8.1/leads?$select=lastname To filter the LeadId our query will be (note no quotes or … Continue reading Query Dynamics CRM through JavaScript with WebAPI