Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

[CRM 2011] How to use generated class created by CRMSvcUtil.exe?

$
0
0

Hi,

I am in the process of migrating code from CRM 4.0 to CRM 2011, and am running into some issues regarding early bound entity classes.  Previously in CRM 4.0 I would use the WSDL to connect to CRM and all entities in CRM would be recognized at development time, however, in CRM 2011 I would like to move away from this model for future compatibility.

I have used the CrmSvcUtil.exe tool to create a set of classes in a .cs file for the CRM instance, however, when I included the file into my project, the existing code does not recognize any of the entities from CRM.  Would someone be able to outline the steps that I need to follow?  The code I have written is in VB.NET, while the generated code is in C#.  Will this be an issue?

For example, this line of code would generate an error, saying that the "incident" type is not defined.

Dim new_case As incident = New incident()

Which modules do I need to include (using Imports) in my code?  Do I need to make any other references to modules?

Thanks!



Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>