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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

LINQ Queries and D365 API Limits

(0) ShareShare
ReportReport
Posted on by 655

Hi all,

I have a MVC website hosted in azure with back-end connected to D365.

I'm using the XRM.Tooling.Connector because it supposedly has 'service protection api limits' protection built in but I'm not seeing it working at all because my MVC portal is exceeding D365 API limits within 30 minutes of going live. 

I have two questions:

1.  How are LINQ queries against Dynamics 365 being treated by the platform?  I thought i read somewhere they are treated as 'RetrieveMultiple' and if so is there are a workaround similar to this https://docs.microsoft.com/en-ca/powerapps/developer/common-data-service/api-limits 

2.  Do they count against API limits?

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    1. LINQ Query in fact is Retrieve Multiple request. What do you use to connect to Dynamics? Is it OOB XrmTooling assemblies?

    2. Those requests are counted as API call.

  • SavvyLuke Profile Picture
    655 on at

    Thanks Andrew.  The MVC site is using this library www.openhub.net/.../xrmlibrary to manage my connections.  I've updated it to work with D365 and it's using tooling SDK libraries for D365.  But there are many LINQ queries that retrieve data.  Do you think if i wrap them in an ASYNC call this would resolve the issue?   

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    I'm not an MVC guy to answer those questions unfortunately. I would recommend to use XrmTooling to connect to Dynamics - www.nuget.org/.../ if you haven't done that yet. According to the post you mentioned that should help with Retry-After usage because it natively uses it.

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…

Neeraj Kumar – Community Spotlight

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

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

#1
Martin Dráb Profile Picture

Martin Dráb 47 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
Pallavi Phade Profile Picture

Pallavi Phade 32

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans