We have generated access token using oauth2.0 using URL login.microsoftonline.com/{Directory (tenant) ID}/oauth2/token with scope: openid offline_access xxx.xxx.dynamics.com/.default
But it is not valid for accessing create phone call activity API (Failure reason is unauthorized)
But when we generate an access token using password and grant type password and resource= our CRM instance URL then it is valid
What should be the scope/configuration needed, so that access token is valid for creating phone call activity API od Dynamics 365
Hi partner,
Thanks for your reply.
I'm so glad to hear that you've resolved your problem!
Best Regards,
Leo
Thanks!
It is working fine now
Thanks for response
but the token is generated as per nishantrana.me/.../ link but it is unauthorized in accessing d365 API to create phone call activity
And when the token generated using a password it is valid and phone call activity created.
FYI: Postman screen screenshots
I found some information for your reference.
nishantrana.me/.../
docs.microsoft.com/.../authenticate-oauth
www.c-sharpcorner.com/.../
According to the above links, password and URL is required to link to D365 and get data.
Regards,
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Mansi Soni as our August 2025 Community…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 100 Super User 2025 Season 2
Suresh Kulla 72 Super User 2025 Season 2
DAnny3211 54