Tuesday, October 6, 2015

MyOrganizationCrmSdkTypes class generate using CrmSvcUtil.exe

MyOrganizationCrmSdkTypes class generate using CrmSvcUtil.exe
In CRM we can generate early-bound .NET Framework classes that represent the entity data model used by Microsoft Dynamics CRM by using CrmSvcUtil.exe.

You can get this exe from CRM SDK development tool kit.

Command to generate class from On-premises CRM
CrmSvcUtil.exe /url:http://<serverName>/<organizationName>/XRMServices/2011/Organization.svc    /out:<outputFilename>.cs /username:<username> /password:<password> /domain:<domainName>    /namespace:<outputNamespace> /serviceContextName:<serviceContextName>

 Command to generate class from Online CRM
CrmSvcUtil.exe /url:https://<organizationUrlName>.crm.dynamics.com/XRMServices/2011/Organization.svc    /out:<outputFilename>.cs /username:<username> /password:<password>     /namespace:<outputNamespace> /serviceContextName:<serviceContextName>
Example for online
CrmSvcUtil.exe /url:https://ASRworld.crm.dynamics.com/XRMServices/2011/Organization.svc    /out:MyOrganizationCrmSdkTypes.cs /username:@userName /password:@password








No comments:

Post a Comment

Note: Only a member of this blog may post a comment.