CrmSvcUtil.exe is a command-line code generation tool in that generates early-bound
Microsoft Dynamics CRM 2015 provides an extension to the CrmSvcUtil.exe command-line tool, called theMicrosoft.Xrm.Client.CodeGeneration extension, which you can use to generate the data context and data transfer object classes for your Microsoft Dynamics CRM organization.
Download the SDK and Microsoft.Xrm.Client.CodeGeneration dll should be in bin folder
Integrated Authentication Example
- CrmSvcUtil.exe /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration"
- /url:http://crm/Contoso/XRMServices/2011/Organization.svc
- /out:"Xrm.cs"
- /namespace:Xrm
- /servicecontextname:XrmServiceContext
- /servicecontextprefix:Xrm
Active Directory Authentication Example
- CrmSvcUtil.exe /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration"
- /url:http://crm/Contoso/XRMServices/2011/Organization.svc
- /domain:contoso
- /username:administrator
- /password:pass@word1
- /out:"Xrm.cs"
- /namespace:Xrm
- /servicecontextname:XrmServiceContext
- /servicecontextprefix:Xrm
Live ID (CRM Online) Authentication
- /url:http://myorg.api.crm.dynamics.com/XRMServices/2011/Organization.svc
- /out:"Xrm.cs"
- /username:user@hotmail.com
- /password:pass@word1
- /deviceid:mydeviceid
- /devicepassword:mydevicepassword
- /namespace:Xrm
- /servicecontextname:XrmServiceContext
- /servicecontextprefix:Xrm
Claims Authentication (IFD, Active Directory)
- CrmSvcUtil.exe /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration"
- /url:https://crm:555/Contoso/XRMServices/2011/Organization.svc
- /username:administrator
- /password:pass@word1
- /out:"Xrm.cs"
- /namespace:Xrm
- /servicecontextname:XrmServiceContext
- /servicecontextprefix:Xrm
No comments:
Post a Comment