Use Postman Tool to Retrieve Records in Dynamics CRM

Use Postman Tool to Retrieve Records in Dynamics CRM

Postman is one of the most popular API testing tools used by developers to interact with Dynamics 365 CRM and Dataverse Web APIs. It allows users to test requests, validate responses, troubleshoot integrations, and retrieve CRM data without writing application code.

By connecting Postman to Dynamics 365 using OAuth authentication, developers can retrieve records, create data, update information, and test custom integrations efficiently.

Why Use Postman with Dynamics 365?

Prerequisites

Configure OAuth Authentication

Open Postman and configure OAuth 2.0 authentication.

Grant Type:
Authorization Code

Auth URL:
https://login.microsoftonline.com/{TenantID}/oauth2/v2.0/authorize

Access Token URL:
https://login.microsoftonline.com/{TenantID}/oauth2/v2.0/token

Retrieve Records Using GET Request

Use a GET request to retrieve records from Dataverse.

GET

https://yourorg.crm.dynamics.com/api/data/v9.2/accounts

This request retrieves Account records from Dynamics 365 CRM.

Retrieve Specific Columns

Use the $select query option to retrieve only required fields.

GET

/api/data/v9.2/accounts?
$select=name,accountnumber

Filter Records

Use OData filters to retrieve specific records.

GET

/api/data/v9.2/accounts?
$filter=statecode eq 0

This returns only Active Account records.

Important: Always include the Authorization token and required headers when making requests to the Dataverse Web API.

Required Headers

Authorization: Bearer Token

Accept: application/json

Content-Type: application/json

OData-MaxVersion: 4.0

OData-Version: 4.0

Common Use Cases

Best Practices

Key Takeaways