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

CrmServiceClient Token refreshed every 5 minutes

(0) ShareShare
ReportReport
Posted on by 20

Hi,

I am developing a program that is communicating whith Dynamics 365 Online. I wrote a piece of code that is authenticating using OAuth to Dynamics 365.

I am using the latest version of package Microsoft.CrmSdk.XrmTooling.CoreAssembly.

Here are the results of a test program that sends WhoAmI request every 30 seconds through new instace of CrmServiceClient. If token is different from previous one it is printed out.

I am using RequireNewInstance=false in Connection string. Shouldn't token be valid for 60 or more minutes, I get new one every 5 minutes?

pastedimage1656407262252v1.png

pastedimage1656407301127v2.png

When I run this piece of code:

pastedimage1656407375080v3.png

and inspect token it says it is valid for an hour.

pastedimage1656407452110v4.png

Is there a problem in CrmServiceClient or I need configure something?

Thanks in advance.

Daniel

I have the same question (0)
  • Community Member Profile Picture
    on at

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
NeerajPawar Profile Picture

NeerajPawar 31

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 19 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 18

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans