Below are the steps how we can generate early bound class for dynamics crm using crmsvcUtil :-
- Get latest crm sdk.
- Go to SDK\Bin folder, there you must see crmsvcUtil tool
- Open command prompt and go to SDK\Bin folder using “cd <sdk bin path>”. For eg: If you have placed bin folder in c drive then run command “cd C:\bin” to move to bin directory as shown :
- Type following command post replacing service url, username and password with your org details:
CrmSvcUtil.exe /url:https://mycrmorg.crm.dynamics.com/XRMServices/2011/Organization.svc /out:C:\EarlyBound.cs /username:"vishalgrade@myorg.onmicrosoft.com" /password:"mypassword" /namespace:earlybound /serviceContextName:ServiceContext
(To get service url navigate to : Settings>Customization>Developer resources>Organisation Service )
Hit enter and you should have the EarlyBound.cs file in C drive after some time..!
Also you can use the Unchase Dynamics365 Connected Service – https://marketplace.visualstudio.com/items?itemName=Unchase.unchasedynamics365connectedservice
LikeLike