1
votes

In one of our projects we have integrated Microsoft Dynamics 2011 using its SDK. However, when querying Accounts, not all the fields get included.

The missing fields are not included in the local CrmEntities.cs, which apparently has been generated by some tool. However, I don't understand how to re-generate the file (I have not been working with CRM before).

Any clues?

2

2 Answers

1
votes

The tool was probably CrmSvcUtil which allows you to generate early bound classes. You need to regenerate the early bound classes when your entity model changes.

See Create early bound entity classes with the code generation tool (CrmSvcUtil.exe)

CrmSvcUtil.exe /url:http://<serverName>/<organizationName>/XRMServices/2011/Organization.svc
    /out:<outputFilename>.cs /username:<username> /password:<password> /domain:<domainName>
    /namespace:<outputNamespace> /serviceContextName:<serviceContextName>
1
votes

It could be generated using Early Bound Generator from XrmToolbox.

Even you can do the same from CrmSvcUtil from SDK, manually in command mode.