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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

First API call very slow - the following ones are quicker. Why?

(0) ShareShare
ReportReport
Posted on by 5
Good evening,

I am using the Dynamics API to generate leads from a form in Dynamics using an existing bearer token.
 
The first time I run the API call, it takes several seconds to complete.
 
All subsequent API calls are much quicker.
 
Why? And what can I do about it?

Thanks
 
I have the same question (0)
  • Martin Dráb Profile Picture
    240,002 Most Valuable Professional on at
    I don't even know which D365 product you're talking about (this forum is about D365 in general), but it seems that there are resources to load, or maybe the whole web application needs to start on the first request. The difference between so-called cold start and warm start is common. It's also possible that it's not just about the first request, but that the web app would go to sleep if not used for some time.
     
    If it's a web app hosted by Microsoft (which likely is the case when talking about D365), you probably can't do much about it. All you can do from outside is making calls, e.g. using periodic calls to prevent the app from unloading.
  • Haig Liu Profile Picture
    Microsoft Employee on at
    Hi Petem34,
     
    In most instances, this is normal and the first data connection tends to take longer.
    The next transfer of data under the same domain will be smoother.
     
    If you have to shorten the first response time, a possible direction is to write a custom API response, but it will lengthen subsequent response times.

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

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 107

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 59 Super User 2026 Season 1

#3
sannavajjala87 Profile Picture

sannavajjala87 29

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans