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

CrmServiceClient Class vs OrganizationServiceProxy Class Connections

(1) ShareShare
ReportReport
Posted on by 14

Hi All,
I can connect my console application both with CrmServiceClient (by Microsoft.Xrm.Tooling nuGet lib) and with OrganizationServiceProxy Class (by Microsoft.Xrm.Sdk nuGet lib) to Dynamics 365 Online for Customer Engagment v9.1.x.
 
By OrganizationServiceProxy:
https://arunpotti.wordpress.com/2018/02/03/step-by-step-to-connect-dynamics-365-crm-online-v9-x-using-c-console-application/comment-page-1/
 
By CrmServiceClient:
https://carldesouza.com/connecting-to-dynamics-365-using-crmserviceclient/
 
I don't understand what the pros and cons of the two methods are.
Could someone explain the difference well to me, please?
 
Unfortunately these posts are not clear to me:
 
- this post uses both connections without clarifying what happens without one of two:
https://www.briteglobal.com/blogs/community/connect-crm-online-console-ii/
 
- this post doesn't summarize well the pros and cons:
https://stackoverflow.com/questions/54030019/why-use-iorganizationservice-instead-of-crmserviceclient-in-dynamics-365-xrm-too
 
- the current MS docs doesn't explain well the differences.
 
 I'd like to hear your experience and advice from a good connector...
Thanks in advance,
 
David
 

I have the same question (0)
  • Saad Kabarousse Profile Picture
    734 on at

    Hello,

    The Major Differences betwenn the two is:

    CrmServiceClient Executes a web request against Web API, it uses (JSON Objects ), OrganizationServiceProxy uses SOAP Endpoint (XML).

    CrmServiceClient, O-Data (Web Api Requests) has become recommended by Microsoft since it's faster than SOAP request.

    So in general it is better and it's Microsoft recommended to work with CrmServiceClient.

  • David Pezzoli Profile Picture
    14 on at

    Hi Saad,

    So summarize, If I use:

    I'm using a REST connection, correct?

     

    Intestead, If I use:

    • Auth user based with a CDS non-intercative user (username + pwd)
    • API Web Instance target URL
    • Wrapper IOrganizationService CRUD operations like: Create(), Update(), Delete() etc..

    I'm using SOAP connection, correct?

     

    Thank you in advance,

     David

  • Suggested answer
    Saad Kabarousse Profile Picture
    734 on at

    Hello David,

    Yes indeed IorganizationServices use Soap Endpoint, so it's better to use Xrm Tooling for your requests since it's based on Web API (REST).

    Best regards,

    Please Mark as Verified is you found it Helpful :)

    Best of luck

  • David Pezzoli Profile Picture
    14 on at

    Hi Kabarousse,

    ok but.... I can also call SOAP API by Xrm Tooling.... so Xrm Tooling work with several authentication options... but Microsoft doesn't indicate what SOAP is and what REST is in Xrm Tooling lib.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans