web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

Access token in not valid to access create phone call activity API of Dynamics 365

(0) ShareShare
ReportReport
Posted on by 30

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

I have the same question (0)
  • LeoAlt Profile Picture
    16,331 Moderator on at
    RE: Access token in not valid to access create phone call activity API of Dynamics 365

    Hi partner,

    Thanks for your reply.

    I'm so glad to hear that you've resolved your problem!

    Best Regards,

    Leo

  • Abhinav_Nimesh Profile Picture
    30 on at
    RE: Access token in not valid to access create phone call activity API of Dynamics 365

    Thanks!

    It is working fine now

  • Abhinav_Nimesh Profile Picture
    30 on at
    RE: Access token in not valid to access create phone call activity API of Dynamics 365

    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

    api headersgenerated token

  • LeoAlt Profile Picture
    16,331 Moderator on at
    RE: Access token in not valid to access create phone call activity API of Dynamics 365

    Hi partner,

    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,

    Leo

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 100 Super User 2025 Season 2

#2
Suresh Kulla Profile Picture

Suresh Kulla 72 Super User 2025 Season 2

#3
DAnny3211 Profile Picture

DAnny3211 54

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans