Hi
I am trying to test my custom web service in postman, before using it in the Power Apps but unfortunatelly I get 401 Unauthorized error when trying to do the call the POST request.
I did everything as shown in this tutorial: https://dynamics365musings.com/create-a-custom-service-in-d365/ including the token part.
My d365 enviroment is set on Azure Virtual Machine and this is the respond of the invoke in Event Viewer on the VM:
I also added Api permisions in Azure App:
PS:It is my first post, so please excuse me for any inconveniences :)
Hi Michal,
You can refer the following link to try to fix the error:
https://nishantrana.me/2020/12/16/fixed-401-unauthorized-error-while-calling-dynamics-365-web-api/
And you can refer the following link--Setup Postman to connect to Dynamics 365 CRM using OAuth 2.0 | Azure App Registration:
DAnny3211
239
Abhilash Warrier
139
Super User 2025 Season 2
André Arnaud de Cal...
91
Super User 2025 Season 2