Hi All,
In one the project which is in development stage, we are using Organization Service Class to create Organization proxy. When we discussed with some people who are using Dynamics 365, They said Organization service is going to get deprecated. They suggested to use Custom Actions instead on using SDK Method.
Whether Organization Service is going to be deprecated in near by future? If it is, What is the workaround for that..
Thanks in advance.
*This post is locked for comments
Hi,
I know this is confusing we are using two service name with "Organization", let me clear that here .
1. Organization Service Endpoint - (Deprecated )
As of the release of Microsoft Dynamics CRM Online 2016 Update 1 and Microsoft Dynamics CRM 2016 Service Pack 1 (8.1.0), the CRM 2011 endpoint has been deprecated. The 2011 endpoint will be removed some time after the release of Dynamics 365 version 9. We plan to provide updates to the Dynamics 365 SDK assemblies and tools over the next several minor releases, retargeting them to use the Web API instead of the 2011 endpoint.
Organization Service URL or SOAP service URL , to communicate with CRM using C#/JS. The url you can find under settings --> customization --> Developer Resource --> Organization Service like "http://******/ORGNAME/XRMServices/2011/Organization.svc"
2. IOrganizationService Interface inside plugin /Workflow- (Not Deprecated)
You may have seen that we are using in below IOrganizationService in plugin and workflow , this could be same in later version as well.
If you’re a .NET developer with no requirements to support other platforms, you don’t have to move to the Web API right away. You’ll need to use the Organization service to support any functionality you want to deploy to organizations using versions of Dynamics 365 for Customer Engagement released before Dynamics 365 for Customer Engagement.
IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));
IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);
Hope this helps.
And yes - the alternative is and will be Web Api.
Your assumption is correct. Microsoft has a plan to depreacte the organization service but its not going to happen in near future. You may not need to worry about it yet. Have a look here :[View:https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/use-microsoft-dynamics-365-web-services]
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156