Hello,
I am trying to access Dataverse Web API using postman with following details:
https://env.crm.dynamics.com/api/data/v9.1/accounts?$select=name&$top=3 HTTP/1.1&Accept=application/json&OData-MaxVersion=4.0&OData-Version=4.0
However it throws 401 authentication error, I am sure I am missing some sort of configuration in the environment or access token needs to be passed in the request? Or I should use other tool to send the request?
Can anyone please share the idea how can I successfully make this request ?
Thanks,
Hi @dave8,
Just following up, wondering if the above steps worked for you or were helpful?
---
Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.
Hi @dave8 ,
You need to retrieve an access token from Azure AD and pass it in through the request header as a bearer token. Key things to setup:
Detailed steps on how to set this up is documented here.
---
Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.
WarrenBelz
146,658
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional