Announcements
Hello,
im trying to retrieve odata web api using plugin using this code below but its not working. the error is: The remote server returned an error: (401) Unauthorized.
Please advise.
if you query the same instance inside a plugin you can use IOrganizationService, you don't need to use OData.
If you query another instance then you need to provide the authorization (a bearer token) to connect.
Can you provide me an example how to provide the authorization to connect ?
in a post I wrote you can find some information on how the authorization works for OData
https://www.crmanswers.net/2022/01/dataverse-web-api-and-rest-client-vs.html
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Subra 120
André Arnaud de Cal... 92 Super User 2026 Season 1
BillurSamdancioglu 83 Most Valuable Professional