Thursday 18 July 2013

Generating Proxy cs using CrmSvcUtil.exe with Screenshot


CrmSvcUtil.exe is a command-line code generation tool for use with Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online. This tool generates early-bound .NET Framework classes that represent the entity data model used by Microsoft Dynamics CRM.

The CrmSvcUtil.exe tool creates a Microsoft Visual C# or Microsoft Visual Basic .NET output file that contains strongly-typed classes for entities in your organization. This includes custom entities and attributes. This output file contains one class for each entity, providing early binding and IntelliSense support in Microsoft Visual Studio to aid you as you write custom code.
CRMSVCUtil will be available in SDK- >\sdk\bin\crmsvcutil.exe
Run this exe through cmd prompt with parameters.
1)      Open cmd prompt and route to the sdk exe folder path



2)      Then give the exe name with CRM organization URL, username, password domain name and output file name.

Output filename : proxy.cs
Username : Adminuser
Password : test@123
Domain : test

3)      After Pressing “Enter”, the exe will be running and generating proxy class in the output path.





Now the output file is saved in sdk\bin\.
Note : This sample is for CRM 2011- on premise. 
For online CRM we need to pass device id in the parameter. Go through this blog for complete details and parameters information.
 

No comments:

Post a Comment