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 CRM (Archived)

How does the CRM Async Service retrieve data from the database

(0) ShareShare
ReportReport
Posted on by

Can anyone confirm the mechanism that the CRM Async Service uses to access CRM data when running on premise with the Async and Sandbox Service running on the back end servers? 

I have always believed that the backend service used the OrganizationWebService on the front end servers for data access and therefore any full trust (unisolated) plugins that get triggered by an Async Service org service request would execute on the front end server.

However, we are seeing evidence that makes it look like the Async Service connects to some OrganizationWebService container on the same backend server and that the plugins execute in that unisolated plugins execute in that context which displays in the local error logs as MSCRMWebService. 

I don't see any definitive documentation. I'm running v8.1 on premise.

Any insights appreciated!

Thanks, Scott

*This post is locked for comments

I have the same question (0)
  • Verified answer
    David Jennaway Profile Picture
    14,065 on at

    If you have plugin code (plugins or custom workflow assemblies), that runs either asynchronously, or in the sandbox, then they will run on the back end server(s), as that's where the async and sandbox processes run.

    I've not seen definitive documentation on this, but my understanding is that, if the plugin derives the IOrganizationService instance from the context passed into the plugin, then this will not need to do back to the OrganizationWebService on the front end server, and instead uses a local OrganizationWebService container. However, if you create the IOrganizationService instance by other means (e.g. OrganizationServiceProxy), then this would go to the OrganizationWebService on the front end server

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans