1
votes

I am new to MS CRM 2015. I am trying to get guid using the telephone1 but I have not found any web api as we have in 2016. In MS CRM 2016 I am using the following APi to get the contact id

http://CRMURL/api/data/v8.0/contacts?$select=telephone1&$filter=telephone1%20eq%20%279091%27

It is working with 2016 but same api is not working with MS 2015. Anyone of you please help me to identify the equivalent api in 2015 to get contact id. I am using on-premises CRM.

1

1 Answers

2
votes

Dynamics CRM web api introduced in Spring release of 2015, aka update 1.

You have to use OData endpoint to query in your case.

[Your Organization Root URL]/XRMServices/2011/OrganizationData.svc/ContactSet?$select=telephone1&$filter=telephone1 eq <value>

You can download CRM Rest builder & use within CRM.