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

Notifications

Announcements

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 24 Super User 2025 Season 2

#2
TAHER Mehdi Profile Picture

TAHER Mehdi 14

#3
Fameeda Yaseen Profile Picture

Fameeda Yaseen 10

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans