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,

    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

  • 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

  • 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

  • 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

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 42 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 35

#3
CU29080825-0 Profile Picture

CU29080825-0 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans