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

Announcements

No record found.

News and Announcements icon
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

  • LeoAlt Profile Picture
    16,341 Moderator on at

    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

    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

    Thanks!

    It is working fine now

  • LeoAlt Profile Picture
    16,341 Moderator on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 60 Most Valuable Professional

#2
11manish Profile Picture

11manish 23 Super User 2026 Season 2

#3
Travis South Profile Picture

Travis South 10

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans