<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Get Current User&#8217;s Business Unit for Hiding Fields</title>
	<atom:link href="http://mscrmblogger.com/2009/09/30/get-current-users-business-unit-for-hiding-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://mscrmblogger.com/2009/09/30/get-current-users-business-unit-for-hiding-fields/</link>
	<description>Achieving it all with Microsoft Dynamics CRM™</description>
	<lastBuildDate>Sun, 29 Jan 2012 17:04:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Carlton Colter</title>
		<link>http://mscrmblogger.com/2009/09/30/get-current-users-business-unit-for-hiding-fields/comment-page-1/#comment-1635</link>
		<dc:creator>Carlton Colter</dc:creator>
		<pubDate>Tue, 17 Jan 2012 19:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=136#comment-1635</guid>
		<description>I would use this: &lt;a href=&quot;http://channel9.msdn.com/posts/Dynamics-CRM-2011-Validation-Framework-Setup-and-Configuration-Walkthrough&quot; rel=&quot;nofollow&quot;&gt;http://channel9.msdn.com/posts/Dynamics-CRM-2011-Validation-Framework-Setup-and-Configuration-Walkthrough&lt;/a&gt;.  It was written by one of my coworkers and I like it.</description>
		<content:encoded><![CDATA[<p>I would use this: <a href="http://channel9.msdn.com/posts/Dynamics-CRM-2011-Validation-Framework-Setup-and-Configuration-Walkthrough" rel="nofollow">http://channel9.msdn.com/posts/Dynamics-CRM-2011-Validation-Framework-Setup-and-Configuration-Walkthrough</a>.  It was written by one of my coworkers and I like it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kumar</title>
		<link>http://mscrmblogger.com/2009/09/30/get-current-users-business-unit-for-hiding-fields/comment-page-1/#comment-1618</link>
		<dc:creator>kumar</dc:creator>
		<pubDate>Tue, 03 Jan 2012 09:27:05 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=136#comment-1618</guid>
		<description>Hi Carlton,
I need to validate phone number fields according to logged users business units.(EX: USA(123-123-123),UK(1233-123-123) Ind(12344 12345)etc. how can I use your code to format phone number fields.</description>
		<content:encoded><![CDATA[<p>Hi Carlton,<br />
I need to validate phone number fields according to logged users business units.(EX: USA(123-123-123),UK(1233-123-123) Ind(12344 12345)etc. how can I use your code to format phone number fields.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlton Colter</title>
		<link>http://mscrmblogger.com/2009/09/30/get-current-users-business-unit-for-hiding-fields/comment-page-1/#comment-510</link>
		<dc:creator>Carlton Colter</dc:creator>
		<pubDate>Wed, 11 Aug 2010 16:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=136#comment-510</guid>
		<description>You could do something like:

if (UserHasBusinessUnit([&#039;BU1&#039;])) {
  //Hide the section...
crmForm.all.new_fieldinsection_c.parentElement.parentElement.style.display=&#039;none&#039;; 
}</description>
		<content:encoded><![CDATA[<p>You could do something like:</p>
<p>if (UserHasBusinessUnit(['BU1'])) {<br />
  //Hide the section&#8230;<br />
crmForm.all.new_fieldinsection_c.parentElement.parentElement.style.display=&#8217;none&#8217;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunny</title>
		<link>http://mscrmblogger.com/2009/09/30/get-current-users-business-unit-for-hiding-fields/comment-page-1/#comment-507</link>
		<dc:creator>sunny</dc:creator>
		<pubDate>Mon, 19 Jul 2010 13:37:56 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=136#comment-507</guid>
		<description>Hi Carlton,

I want a section  to be hidden from a specific users belonging to BU1. Where shld I make the modifications in your code to reproduce the workaround?

Regards
Sunny</description>
		<content:encoded><![CDATA[<p>Hi Carlton,</p>
<p>I want a section  to be hidden from a specific users belonging to BU1. Where shld I make the modifications in your code to reproduce the workaround?</p>
<p>Regards<br />
Sunny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukas</title>
		<link>http://mscrmblogger.com/2009/09/30/get-current-users-business-unit-for-hiding-fields/comment-page-1/#comment-441</link>
		<dc:creator>Lukas</dc:creator>
		<pubDate>Tue, 02 Feb 2010 13:39:29 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=136#comment-441</guid>
		<description>Hello

Thank you for this great example! It was really helpful.

Greets
Lukas</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>Thank you for this great example! It was really helpful.</p>
<p>Greets<br />
Lukas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavel</title>
		<link>http://mscrmblogger.com/2009/09/30/get-current-users-business-unit-for-hiding-fields/comment-page-1/#comment-421</link>
		<dc:creator>Pavel</dc:creator>
		<pubDate>Thu, 29 Oct 2009 07:05:33 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=136#comment-421</guid>
		<description>YES! Now it works!
Thanks Carlton for your efforts!</description>
		<content:encoded><![CDATA[<p>YES! Now it works!<br />
Thanks Carlton for your efforts!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlton Colter</title>
		<link>http://mscrmblogger.com/2009/09/30/get-current-users-business-unit-for-hiding-fields/comment-page-1/#comment-420</link>
		<dc:creator>Carlton Colter</dc:creator>
		<pubDate>Wed, 28 Oct 2009 11:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=136#comment-420</guid>
		<description>Ok.  The updated code should work.  Please let me know if it doesn&#039;t.  I tested the GetMyBusinessUnit proc and it returns the name of the user&#039;s business unit.</description>
		<content:encoded><![CDATA[<p>Ok.  The updated code should work.  Please let me know if it doesn&#8217;t.  I tested the GetMyBusinessUnit proc and it returns the name of the user&#8217;s business unit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlton Colter</title>
		<link>http://mscrmblogger.com/2009/09/30/get-current-users-business-unit-for-hiding-fields/comment-page-1/#comment-419</link>
		<dc:creator>Carlton Colter</dc:creator>
		<pubDate>Wed, 28 Oct 2009 10:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=136#comment-419</guid>
		<description>I have a fetchxml that can get the business unit, so I will update the code to use that method.</description>
		<content:encoded><![CDATA[<p>I have a fetchxml that can get the business unit, so I will update the code to use that method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavel</title>
		<link>http://mscrmblogger.com/2009/09/30/get-current-users-business-unit-for-hiding-fields/comment-page-1/#comment-417</link>
		<dc:creator>Pavel</dc:creator>
		<pubDate>Tue, 27 Oct 2009 15:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=136#comment-417</guid>
		<description>this script gives all Biz Units stored in system, not for current user.
Can anybody suggest any way to get current user BU?</description>
		<content:encoded><![CDATA[<p>this script gives all Biz Units stored in system, not for current user.<br />
Can anybody suggest any way to get current user BU?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Set a default email template for new emails on cases. &#124; MSCRM Blogger</title>
		<link>http://mscrmblogger.com/2009/09/30/get-current-users-business-unit-for-hiding-fields/comment-page-1/#comment-388</link>
		<dc:creator>Set a default email template for new emails on cases. &#124; MSCRM Blogger</dc:creator>
		<pubDate>Fri, 02 Oct 2009 22:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://mscrmblogger.com/?p=136#comment-388</guid>
		<description>[...] Get Current User&#8217;s Business Unit for Hiding Fields  [...]</description>
		<content:encoded><![CDATA[<p>[...] Get Current User&#8217;s Business Unit for Hiding Fields  [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

