<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.crowehorwath.com/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Incorporating Custom Entities into a Plugin (revised)</title><link>http://www.crowehorwath.com/cs/blogs/crm/archive/2008/03/19/incorporating-custom-entities-into-a-plugin-revised.aspx</link><description>Thanks to a reader&amp;#39;s comment over my previous post, a small error has been brought to my attention and at the same time gave me an opportunity to improve and even go further into the process of using a custom entity within a plugin. Microsoft.Crm</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>re: Incorporating Custom Entities into a Plugin (revised)</title><link>http://www.crowehorwath.com/cs/blogs/crm/archive/2008/03/19/incorporating-custom-entities-into-a-plugin-revised.aspx#1438</link><pubDate>Thu, 05 Jun 2008 14:05:58 GMT</pubDate><guid isPermaLink="false">733c1265-83be-4492-a5ff-7e2be949a514:1438</guid><dc:creator>Mitch Kett</dc:creator><description>&lt;p&gt;It has been asked whether or not the SDK can be &amp;quot;overriden&amp;quot; or &amp;quot;completed&amp;quot; in order to work with custom entities (thus getting around using the web ref and not having to use DynamicEntity), and as of right now I am not aware of such a thing. &amp;nbsp;If you are able to make CRM &amp;quot;update&amp;quot; the SDK with custom entity information, it&amp;#39;s behavior and usage would be no different than the web ref. &amp;nbsp;In my opinion, it would be best to leave the SDK &amp;quot;as-is&amp;quot; simply because it would not be worth the time and effort to make it behave like the web ref which already exists.&lt;/p&gt;
&lt;img src="http://www.crowehorwath.com/cs/aggbug.aspx?PostID=1438" width="1" height="1"&gt;</description></item><item><title>re: Incorporating Custom Entities into a Plugin (revised)</title><link>http://www.crowehorwath.com/cs/blogs/crm/archive/2008/03/19/incorporating-custom-entities-into-a-plugin-revised.aspx#1110</link><pubDate>Thu, 22 May 2008 15:50:05 GMT</pubDate><guid isPermaLink="false">733c1265-83be-4492-a5ff-7e2be949a514:1110</guid><dc:creator>Mitchell  Kett</dc:creator><description>&lt;p&gt;Apologies for such a late response. &amp;nbsp;George is quite right regarding the line replacement. &amp;nbsp;Now that I have&amp;nbsp;looked into this deeper&amp;nbsp;I can see that the use of the web reference is merely for use at design-time when you want to manipulate custom entities. &amp;nbsp;Assuming nothing changes with the entity, use of DynamicEntity is not necessary when using the web reference. &amp;nbsp;However, entities will frequently change, and to manipulate data from custom entities at runtime, DynamicEntity can be used. &amp;nbsp;DynamicEntity makes the web reference unneccessary since CRM handles it how the user defines it (give it type = &amp;#39;account&amp;#39; and it&amp;#39;ll be treated like an account... give it type = &amp;#39;custom_object&amp;#39; and CRM will map it to a custom_object).&lt;/p&gt;&lt;img src="http://www.crowehorwath.com/cs/aggbug.aspx?PostID=1110" width="1" height="1"&gt;</description></item><item><title>re: Incorporating Custom Entities into a Plugin (revised)</title><link>http://www.crowehorwath.com/cs/blogs/crm/archive/2008/03/19/incorporating-custom-entities-into-a-plugin-revised.aspx#330</link><pubDate>Wed, 19 Mar 2008 16:33:20 GMT</pubDate><guid isPermaLink="false">733c1265-83be-4492-a5ff-7e2be949a514:330</guid><dc:creator>George Doubinski</dc:creator><description>&lt;p&gt;Mitchell,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still at loss why would you need to include your own reference?! You&amp;#39;re dealing with DynamicEntity which does support your custom entities regardless of whether you include your wsdl or not. The line &lt;/p&gt;
&lt;p&gt;if (vehicle.Name != VehicleNamePlugin.CrmServiceRef.EntityName.new_vehicle.ToString())&lt;/p&gt;
&lt;p&gt;can be easily replaced with &lt;/p&gt;
&lt;p&gt;if(vehicle.Name != &amp;quot;new_vehicle&amp;quot;)&lt;/p&gt;
&lt;p&gt;with the same effect minus custom reference.&lt;/p&gt;
&lt;p&gt;If you believe that you can easily mix code from your reference and Microsoft.Crm.SdkTypeProxy, well, think again - all the types will clash and you won&amp;#39;t be able to cast a thing.&lt;/p&gt;
&lt;p&gt;As far as registration is concerned, the only extra bit you&amp;#39;re getting is a &amp;quot;type-ahead&amp;quot; - you can still register your custom entity by typing its name manually. I trust you are getting latest plugin registration tool from &lt;a rel="nofollow" target="_new" href="http://code.msdn.microsoft.com/crmplugintool"&gt;code.msdn.microsoft.com/crmplugintool&lt;/a&gt; and not from SDK.&lt;/p&gt;
&lt;p&gt;My 2c&lt;/p&gt;
&lt;img src="http://www.crowehorwath.com/cs/aggbug.aspx?PostID=330" width="1" height="1"&gt;</description></item></channel></rss>