Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

C# WEB API CRUD operations / Deprecation SDK

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

We've been using the CrmSvcUtil.exe to generate classes based on our dynamics entities.

Now that the XRM.SDK (SDK) will be deprecated in a future release of dynamics 365, how are we supposed to generate entity classes / CRUD operations with the WEB API based on .NET C#?

CrmSvcUtil.exe

https://msdn.microsoft.com/en-us/library/gg327844.aspx

Kind regards,

Tom Devin

*This post is locked for comments

  • Suggested answer
    Vipin J Profile Picture
    Vipin J 1,583 on at
    RE: C# WEB API CRUD operations / Deprecation SDK

    Refer here for generic method to do CRUD Operations in Dynamic CRM using Web API in C#

    https://vjcity.blogspot.com/2020/05/generic-web-api-methods-for-dynamic-crm.html

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: C# WEB API CRUD operations / Deprecation SDK

    That's my understanding (or, at least, that's how I'm reading those articles)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: C# WEB API CRUD operations / Deprecation SDK

    So if I understand we can keep the code the same but we only have to change the authentication from the 2011 endpoint to web api endpoint? (in the way we can still use sdk? as sdk is not deprecated but only the 2011 endpoint)

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: C# WEB API CRUD operations / Deprecation SDK

    Missed part of the question:

    "If we start using the XRM Tooling Assemblies, will we be able to create Early Bound Entities? "

    Yes (for example, you can do it in V9). Actually, early-bound is not a problem at all since early-bound classes (when it comes to Dynamics) simply introduce wrapper methods/properties for the original late-bound methods(if you look at the source code for the generated proxy classes, you'll see what I mean)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: C# WEB API CRUD operations / Deprecation SDK

    UPDATE: Additional information: we use the CRM 2011 endpoint and use the XRM Toolbox to generate early bound entities. We wish to migrate with the least amount of changes, where we can use early bound generated entities. We wish to seek a solution to migrate al our windows platform projects created with C#.

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: C# WEB API CRUD operations / Deprecation SDK

    Hi Tom,

     the endpoint is deprecated, that's correct, but all those articles are clearly saying that SDK assemblies will be using Web API by the time that endpoint is removed.

     From the Xrm.SDK usage standpoint, I don't think anything will change (including early-bound classes)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: C# WEB API CRUD operations / Deprecation SDK

    Hi Francesco,

    Please check my other response to Alex. Eventhough Late Bound Entities are more flexible than Early, we would still prefer Early if that's possible.

    Best regards,

    Tom Devin

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: C# WEB API CRUD operations / Deprecation SDK

    Hi Alex,

    Thank you for your quick response. As stated in the article beneath, the CRM 2011 endpoint which we use is deprecated. The article says when you use this endpoint, it is best practice to migrate to the Web API endpoint.

    msdn.microsoft.com/.../dn281891.aspx

    If we start using the XRM Tooling Assemblies, will we be able to create Early Bound Entities? So the impact is minimal.

    Best regards,

    Tom Devin

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: C# WEB API CRUD operations / Deprecation SDK

    Hi Tom,

    I don't know if this feature will be replaced, however, i could suggest taking this event to start using late bound entities because they are more flexible than early bound.

    Hope it helps!

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: C# WEB API CRUD operations / Deprecation SDK

    Hi Tom,

     where do you see that Xrm.SDK will be deprecated?

     If you look at this link:

    docs.microsoft.com/.../choose-development-style

     I think Xrm.SDK is still completely fine.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans