<?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>Example Of Deactivating An Entity</title><link>http://www.crowehorwath.com/cs/blogs/crm/archive/2009/03/06/example-of-deactivating-an-entity.aspx</link><description>One of the least published example of CRM code is deactivating an entity, probably because it&amp;#39;s not used as often as creating, updating or retrieving entities. Below is an example I&amp;#39;ve used on several occasions to deactivate an entity: public</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>re: Example Of Deactivating An Entity</title><link>http://www.crowehorwath.com/cs/blogs/crm/archive/2009/03/06/example-of-deactivating-an-entity.aspx#18164</link><pubDate>Thu, 16 Apr 2009 15:10:22 GMT</pubDate><guid isPermaLink="false">733c1265-83be-4492-a5ff-7e2be949a514:18164</guid><dc:creator>Danny Varghese</dc:creator><description>&lt;p&gt;Hi Jodi,&lt;/p&gt;
&lt;p&gt;There&amp;#39;s a few avenues you can take here, and let you decide which is best suited for your business needs. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. &amp;nbsp;You can always restrict update access to the entity with out of the box CRM security roles &amp;nbsp;i.e. for that specific security role, limit the update ability on the account.&lt;/p&gt;
&lt;p&gt;2. &amp;nbsp;There is no view you can create, but there is a view that will show you all &amp;quot;deactivated&amp;quot; accounts out of the box and it will tell you who last updated it giving you some indication who deactivated it. &amp;nbsp;The view name is &amp;quot;Inactive Accounts.&amp;quot; &amp;nbsp;The downside is this view shows records AFTER it&amp;#39;s been deactivated.&lt;/p&gt;
&lt;p&gt;3. &amp;nbsp;If you want to allow the user to update the record but prevent the user from deactivating the plug-in in real time, then you&amp;#39;ll need to write a plug-in. &amp;nbsp;The plug-in can be fired on a pre-event to see if the entity is being deactivated either re-activate it or just stop it all together.&lt;/p&gt;
&lt;p&gt;4. &amp;nbsp;The last option is there is third party software out there that you can purchase to do this.&lt;/p&gt;
&lt;p&gt;I hope this helps, please let me know if you want me to clarify something =). &amp;nbsp;Thanks!&lt;/p&gt;
&lt;img src="http://www.crowehorwath.com/cs/aggbug.aspx?PostID=18164" width="1" height="1"&gt;</description></item><item><title>re: Example Of Deactivating An Entity</title><link>http://www.crowehorwath.com/cs/blogs/crm/archive/2009/03/06/example-of-deactivating-an-entity.aspx#18162</link><pubDate>Thu, 16 Apr 2009 14:53:11 GMT</pubDate><guid isPermaLink="false">733c1265-83be-4492-a5ff-7e2be949a514:18162</guid><dc:creator>Jodi Cannon</dc:creator><description>&lt;p&gt;Is there a way to detect the account deactivation process from a view? &amp;nbsp;I need to prevent deactivation based upon role. &amp;nbsp;&lt;/p&gt;
&lt;img src="http://www.crowehorwath.com/cs/aggbug.aspx?PostID=18162" width="1" height="1"&gt;</description></item></channel></rss>