Home › Dynamics 365 Customer Engagement (CRM) › Retrieving a Record using Web API by Id or Name in Dynamics 365
Dynamics 365 Customer Engagement (CRM) · Jul 9, 2018 · 1 MIN READ

Retrieving a Record using Web API by Id or Name in Dynamics 365

In Dynamics 365, we can use the Web API to retrieve a record. We can do this by using the Id of the record, or another identifier such as the name.

Let’s use Accounts as an example.

To get a record using the Id, the format is:

https://yourorg.api.crm.dynamics.com/api/data/v9.1/accounts(Id)

Note there are no quotes around the Id.

For example:

https://yourorg.api.crm.dynamics.com/api/data/v9.1/accounts(D494B650-73FF-E611-8104-E0071B669E61)

Returns:

To get by name (accounts has a name field), we would use filter:

https://yourorg.api.crm.dynamics.com/api/data/v9.1/accounts?$filter=name eq ‘the name‘

E.g.

https://yourorg.api.crm.dynamics.com/api/data/v9.1/accounts?$filter=name eq ‘7-Eleven and Udaside label’

Returns:

 

Carl de Souza
Keep learning. Keep building.

Explore AI, agents & Microsoft technology.

I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.

Subscribe on YouTube →
Carl de Souza Enterprise Architect at Microsoft · AI Technology Expert

Leave a Reply

Your email address will not be published. Required fields are marked *

Carl de Souza
KEEP LEARNING. KEEP BUILDING.

Explore AI, agents & Microsoft technology.

I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.