<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Display a CRM 4.0 PickList Display-Value in Reports and Queries</title>
	<atom:link href="http://osubrenden.wordpress.com/2009/03/22/display-a-crm-40-picklist-display-value-in-report-or-query/feed/" rel="self" type="application/rss+xml" />
	<link>http://osubrenden.wordpress.com/2009/03/22/display-a-crm-40-picklist-display-value-in-report-or-query/</link>
	<description>Taking Microsoft Dynamics CRM to the Extreme</description>
	<lastBuildDate>Mon, 11 Apr 2011 21:55:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: withersdavid75</title>
		<link>http://osubrenden.wordpress.com/2009/03/22/display-a-crm-40-picklist-display-value-in-report-or-query/#comment-82</link>
		<dc:creator><![CDATA[withersdavid75]]></dc:creator>
		<pubDate>Mon, 29 Nov 2010 21:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://extremecrm.net/?p=48#comment-82</guid>
		<description><![CDATA[FYI added:
AND (MetadataSchema.Entity.CustomizationLevel &gt; 0)
now it works fine]]></description>
		<content:encoded><![CDATA[<p>FYI added:<br />
AND (MetadataSchema.Entity.CustomizationLevel &gt; 0)<br />
now it works fine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: withersdavid75</title>
		<link>http://osubrenden.wordpress.com/2009/03/22/display-a-crm-40-picklist-display-value-in-report-or-query/#comment-81</link>
		<dc:creator><![CDATA[withersdavid75]]></dc:creator>
		<pubDate>Mon, 29 Nov 2010 20:51:44 +0000</pubDate>
		<guid isPermaLink="false">http://extremecrm.net/?p=48#comment-81</guid>
		<description><![CDATA[This does not work on Account sadly
I have a custom field named new_claimsystem
SELECT 
	dbo.MapPickList(&#039;account&#039;, &#039;new_claimsystem&#039;, New_ClaimSystem) AS ClaimSystem

FROM Account

Gives error:
Msg 512, Level 16, State 1, Line 1
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, &lt;, , &gt;= or when the subquery is used as an expression.]]></description>
		<content:encoded><![CDATA[<p>This does not work on Account sadly<br />
I have a custom field named new_claimsystem<br />
SELECT<br />
	dbo.MapPickList(&#8216;account&#8217;, &#8216;new_claimsystem&#8217;, New_ClaimSystem) AS ClaimSystem</p>
<p>FROM Account</p>
<p>Gives error:<br />
Msg 512, Level 16, State 1, Line 1<br />
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, &lt;, , &gt;= or when the subquery is used as an expression.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JMF</title>
		<link>http://osubrenden.wordpress.com/2009/03/22/display-a-crm-40-picklist-display-value-in-report-or-query/#comment-30</link>
		<dc:creator><![CDATA[JMF]]></dc:creator>
		<pubDate>Thu, 04 Mar 2010 14:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://extremecrm.net/?p=48#comment-30</guid>
		<description><![CDATA[What&#039;s the point of using &#039;like&#039; in the query instead of &#039;=&#039;?]]></description>
		<content:encoded><![CDATA[<p>What&#8217;s the point of using &#8216;like&#8217; in the query instead of &#8216;=&#8217;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: C. List</title>
		<link>http://osubrenden.wordpress.com/2009/03/22/display-a-crm-40-picklist-display-value-in-report-or-query/#comment-24</link>
		<dc:creator><![CDATA[C. List]]></dc:creator>
		<pubDate>Sun, 24 Jan 2010 13:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://extremecrm.net/?p=48#comment-24</guid>
		<description><![CDATA[...Well I&#039;m a little late to the party here, but I just wanted to say that I agree with your method, and I came to the same conclusion; that a function like this is need - on my own. I call mine &quot;dbo.f_GetPicklistValue&quot; - but the parameters and method are the same. I also created the reverse function;
dbo.f_GetPicklistAttributeValue
...which takes a string as the last parm and returns the integer stored in the database for the picklist, allowing me to do something like...

SELECT  LastName, FirstName 
FROM Contact 
WHERE ShoeSize = dbo.f_GetPicklistAttributeValue(&#039;contact&#039;, &#039;shoesize&#039;, &#039;9.5&#039;)


Cheers,
Chris List]]></description>
		<content:encoded><![CDATA[<p>&#8230;Well I&#8217;m a little late to the party here, but I just wanted to say that I agree with your method, and I came to the same conclusion; that a function like this is need &#8211; on my own. I call mine &#8220;dbo.f_GetPicklistValue&#8221; &#8211; but the parameters and method are the same. I also created the reverse function;<br />
dbo.f_GetPicklistAttributeValue<br />
&#8230;which takes a string as the last parm and returns the integer stored in the database for the picklist, allowing me to do something like&#8230;</p>
<p>SELECT  LastName, FirstName<br />
FROM Contact<br />
WHERE ShoeSize = dbo.f_GetPicklistAttributeValue(&#8216;contact&#8217;, &#8216;shoesize&#8217;, &#8217;9.5&#8242;)</p>
<p>Cheers,<br />
Chris List</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Masahiro</title>
		<link>http://osubrenden.wordpress.com/2009/03/22/display-a-crm-40-picklist-display-value-in-report-or-query/#comment-22</link>
		<dc:creator><![CDATA[Masahiro]]></dc:creator>
		<pubDate>Tue, 15 Dec 2009 09:38:40 +0000</pubDate>
		<guid isPermaLink="false">http://extremecrm.net/?p=48#comment-22</guid>
		<description><![CDATA[GJ!
It helped my task!]]></description>
		<content:encoded><![CDATA[<p>GJ!<br />
It helped my task!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://osubrenden.wordpress.com/2009/03/22/display-a-crm-40-picklist-display-value-in-report-or-query/#comment-19</link>
		<dc:creator><![CDATA[Matthew]]></dc:creator>
		<pubDate>Fri, 04 Sep 2009 18:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://extremecrm.net/?p=48#comment-19</guid>
		<description><![CDATA[Thanks, this helped a lot!

A somewhat related question - when you have a duration field in CRM, CRM stores this value in minutes, whereas, from the front end it displays it as &quot;15 minutes&quot;, &quot;30 minutes&quot;...&quot;1 day&quot;, &quot;2 days&quot;, etc.

I&#039;m using SQL Reporting Services to develop a report.  Is there a way I can convert the duration field in CRM (in minutes) to &quot;15 minutes&quot;, &quot;30 minutes&quot;, &quot;1 day&quot;, &quot;2 days&quot; etc.?]]></description>
		<content:encoded><![CDATA[<p>Thanks, this helped a lot!</p>
<p>A somewhat related question &#8211; when you have a duration field in CRM, CRM stores this value in minutes, whereas, from the front end it displays it as &#8220;15 minutes&#8221;, &#8220;30 minutes&#8221;&#8230;&#8221;1 day&#8221;, &#8220;2 days&#8221;, etc.</p>
<p>I&#8217;m using SQL Reporting Services to develop a report.  Is there a way I can convert the duration field in CRM (in minutes) to &#8220;15 minutes&#8221;, &#8220;30 minutes&#8221;, &#8220;1 day&#8221;, &#8220;2 days&#8221; etc.?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark allen</title>
		<link>http://osubrenden.wordpress.com/2009/03/22/display-a-crm-40-picklist-display-value-in-report-or-query/#comment-8</link>
		<dc:creator><![CDATA[mark allen]]></dc:creator>
		<pubDate>Thu, 02 Apr 2009 23:01:19 +0000</pubDate>
		<guid isPermaLink="false">http://extremecrm.net/?p=48#comment-8</guid>
		<description><![CDATA[Hi
I think i&#039;m having this issue.
I created a new entity, and when i use excel to query the table, MS Query, it shows the integer value of the picklist and not the description.  how can i get around this?  
thanks
mark]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
I think i&#8217;m having this issue.<br />
I created a new entity, and when i use excel to query the table, MS Query, it shows the integer value of the picklist and not the description.  how can i get around this?<br />
thanks<br />
mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osubrenden</title>
		<link>http://osubrenden.wordpress.com/2009/03/22/display-a-crm-40-picklist-display-value-in-report-or-query/#comment-7</link>
		<dc:creator><![CDATA[osubrenden]]></dc:creator>
		<pubDate>Thu, 26 Mar 2009 21:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://extremecrm.net/?p=48#comment-7</guid>
		<description><![CDATA[Hi Ibrahim,  I&#039;m glad you commented because it reminds me to mention why I didn&#039;t use a filtered view which is the Microsoft recommendation for reporting.  Filtered views in complex custom CRM application with large numbers of custom entity&#039;s have very high overhead and are not efficient at all.  This function offers a way to get a sleek very efficient resultset.]]></description>
		<content:encoded><![CDATA[<p>Hi Ibrahim,  I&#8217;m glad you commented because it reminds me to mention why I didn&#8217;t use a filtered view which is the Microsoft recommendation for reporting.  Filtered views in complex custom CRM application with large numbers of custom entity&#8217;s have very high overhead and are not efficient at all.  This function offers a way to get a sleek very efficient resultset.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ibrahim</title>
		<link>http://osubrenden.wordpress.com/2009/03/22/display-a-crm-40-picklist-display-value-in-report-or-query/#comment-6</link>
		<dc:creator><![CDATA[Ibrahim]]></dc:creator>
		<pubDate>Thu, 26 Mar 2009 00:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://extremecrm.net/?p=48#comment-6</guid>
		<description><![CDATA[I find if you select the records from the filtered view it would be much easier: 

SELECT     LastName, FirstName, ShoeSize

FROM  Contact]]></description>
		<content:encoded><![CDATA[<p>I find if you select the records from the filtered view it would be much easier: </p>
<p>SELECT     LastName, FirstName, ShoeSize</p>
<p>FROM  Contact</p>
]]></content:encoded>
	</item>
</channel>
</rss>

