Postman is an API platform for developers to design, build, test, and iterate their APIs.
In this article, will explain about retrieving Account’s Table records from the Dataverse environment in Postman.
Pre-requisite
Follow all the steps mentioned in the article mentioned above and then follow the below steps.
Step 1
Click on the Collection … and Click on Add request to create a new Web API Request.
Step 2
Click on Rename to change the Web API Request name.
Renamed to Retrieve Account records.
Step 3
Select GET Http Verb and provide the below text to get the Top 5 Account records with Name and Account Number.
{{webapiurl}}accounts?$select=name,accountnumber&$top=5
Note: Params will be populated automatically.
Step 4
Provide the below values under Headers section.
If-None-Match |
null |
OData-Version |
4.0 |
OData-MaxVersion |
4.0 |
Content-Type |
application/json |
Accept |
application/json |
Headers will look like below.
Step 5
Click on Save and Send.
You can see a message 200 OK, which means the request executed successfully and can see the account records in the Body section in JSON format.
Hope you have followed all the steps and retrieved the Account records.
Like and share your valuable feedback on this article.