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.
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.
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
Can you provide me an example how to provide the authorization to connect ?
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.
Adis
136
Super User 2025 Season 1
Sohail Ahmed
81
Jonas "Jones" Melgaard
77
Super User 2025 Season 1