
I am trying to access my dynamics webapi so i can add records from my outlook add in to my dataverse. When i am trying to do a post method to my api i get a 401 unauthorized. I have tried adding a request header with my credentials of microsoft but that doesn't work. I also tried getting a new access token in postman with my credentials en the authorization link of microsoft but that doesn't work either. Can someone help me with this issue?
Hi @jorenchristiaen,
I presume this is a custom developed add-in using JavaScript? You'll need to use Oauth2 to obtain an access token to Dataverse , using the implicit flow. A walkthrough is provided at the link below.
---
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.