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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Microsoft.Xrm.Client.Services.OrganizationService does not exist in Microsoft.CrmSdk.XrmTooling.CoreAssembly v9.1.051

(0) ShareShare
ReportReport
Posted on by 5

In CRM 2015, we developed custom code to access Organization service to retrieve/update CRM Org entities with the following code.

string connection = @"ServiceUri=">crmorg.mycrmtest.ourdomain.com;Username=domain\admin;Password=XXXXXXX;";


try
{

CrmConnection crmConnect = CrmConnection.Parse(connection);
crmConnect.ProxyTypesEnabled = true;
crmConnect.Timeout = new TimeSpan(0, 0, 60, 0);
CachedOrganizationService orgService = new CachedOrganizationService(crmConnect);

return orgService;
}
catch (Exception ex)
{
new LogService().Log(Constants.LOG_ERROR, new Error("An error occured while connecting to CRM", ex));
}
return null;

However, when I connect this custom code to the D365 online (cloud) environment, the CrmServiceClient namespace does not have the equivalent class.

So my question is, how can I upgrade the custom code so it will work in the online environment without changing the whole code structure?

Any help to point to the right direction is appreciated.

Please let me know if you have any question.

Thank you.

cdjleeus

I have the same question (0)
  • Suggested answer
    Rui Carvalho Profile Picture
    Microsoft Employee on at

    Hello,

    Have you verified this quickstart sample: docs.microsoft.com/.../sample-simplified-connection-quick-start ?

    You can also download and run the sample that is mentioned here: docs.microsoft.com/.../sample-quick-start

    You can see how it works and modify on your code.

  • Cdjleeus Profile Picture
    5 on at

    Hi Rui,

    Thank you for the link. I was able to modify my code to connect to organization services.  However in Microsoft.CrmSdk.XrmTooling.CoreAssembly v9.1.051, CachedOrganizationService does not exist anymore, do you know if there is a replacement for this?  What should I do if I want to keep using CachedOrganizationService to improve performance.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 101 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 83

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans