<?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: Map a custom lead field to 2 places</title>
	<atom:link href="http://sfdc.arrowpointe.com/2007/01/08/map-a-custom-lead-field-to-2-places/feed/" rel="self" type="application/rss+xml" />
	<link>http://sfdc.arrowpointe.com/2007/01/08/map-a-custom-lead-field-to-2-places/</link>
	<description>Authored by Scott Hemmeter of Arrowpointe Corp, this blog is written from the perspective of a Salesforce.com solution provider and contains information on Arrowpointe's AppExchange products as well as tips, findings, sample code, functionality wishes, etc.</description>
	<lastBuildDate>Wed, 16 May 2012 17:48:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Scott Hemmeter</title>
		<link>http://sfdc.arrowpointe.com/2007/01/08/map-a-custom-lead-field-to-2-places/comment-page-1/#comment-39612</link>
		<dc:creator>Scott Hemmeter</dc:creator>
		<pubDate>Wed, 03 Oct 2007 16:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/2007/01/08/map-a-custom-lead-field-to-2-places/#comment-39612</guid>
		<description>Here&#039;s a sample formula I&#039;ve used before to get values from picklists.  It&#039;s a combo of CASE and ISPICKVAL.
&lt;blockquote&gt;&lt;code&gt;
CASE(1,
IF(ISPICKVAL({!Status__c},&quot;Active&quot;), 1, 0),&quot;Active&quot;,
IF(ISPICKVAL({!Status__c},&quot;Inactive&quot;), 1, 0),&quot;Inactive&quot;,
IF(ISPICKVAL({!Status__c},&quot;On Hold&quot;), 1, 0),&quot;On Hold&quot;,
&quot;&quot;)
&lt;/code&gt;&lt;/blockquote&gt;

I hope this helps.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a sample formula I&#8217;ve used before to get values from picklists.  It&#8217;s a combo of CASE and ISPICKVAL.</p>
<blockquote><p><code><br />
CASE(1,<br />
IF(ISPICKVAL({!Status__c},"Active"), 1, 0),"Active",<br />
IF(ISPICKVAL({!Status__c},"Inactive"), 1, 0),"Inactive",<br />
IF(ISPICKVAL({!Status__c},"On Hold"), 1, 0),"On Hold",<br />
"")<br />
</code></p></blockquote>
<p>I hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amanda</title>
		<link>http://sfdc.arrowpointe.com/2007/01/08/map-a-custom-lead-field-to-2-places/comment-page-1/#comment-39293</link>
		<dc:creator>Amanda</dc:creator>
		<pubDate>Mon, 01 Oct 2007 20:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/2007/01/08/map-a-custom-lead-field-to-2-places/#comment-39293</guid>
		<description>Scott,
I am having trouble getting the workflow formula to copy any picklist values to a text field.  I tried the Case formula that Josh put on your page (eg.  CASE(Bill_to_Country__c,Brazil,Ã¢â‚¬ÂBrazilÃ¢â‚¬Â,Australia,Ã¢â‚¬ÂAustraliaÃ¢â‚¬Â,&quot;&quot;) ) but all I got was a &quot;Syntax Error&quot; for the whole thing.  I tried using ISPICKVAL( Bill_to_Country__c , &quot;Brazil&quot;) but then I got the error &quot;Formula result is data type (Boolean), incompatible with expected data type (Text).&quot;  Can you tell me how to get a picklist value to copy to a text field through a workflow field update?

Thanks so much!
Amanda</description>
		<content:encoded><![CDATA[<p>Scott,<br />
I am having trouble getting the workflow formula to copy any picklist values to a text field.  I tried the Case formula that Josh put on your page (eg.  CASE(Bill_to_Country__c,Brazil,Ã¢â‚¬ÂBrazilÃ¢â‚¬Â,Australia,Ã¢â‚¬ÂAustraliaÃ¢â‚¬Â,&#8221;") ) but all I got was a &#8220;Syntax Error&#8221; for the whole thing.  I tried using ISPICKVAL( Bill_to_Country__c , &#8220;Brazil&#8221;) but then I got the error &#8220;Formula result is data type (Boolean), incompatible with expected data type (Text).&#8221;  Can you tell me how to get a picklist value to copy to a text field through a workflow field update?</p>
<p>Thanks so much!<br />
Amanda</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://sfdc.arrowpointe.com/2007/01/08/map-a-custom-lead-field-to-2-places/comment-page-1/#comment-12471</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Thu, 15 Mar 2007 15:42:55 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/2007/01/08/map-a-custom-lead-field-to-2-places/#comment-12471</guid>
		<description>Thanks for the workaround. It worked awesome.

To get around the ISPICKVAL gotcha, you can use a case which allows you to basically handle every line item in your picklist using one line in the formula field.  Here is an example of how I did it with state:

CASE(State__c,&quot;AL&quot;,&quot;AL&quot;,&quot;AK&quot;,&quot;AK&quot;,&quot;AZ&quot;,&quot;AZ&quot;,&quot;AR&quot;,&quot;AR&quot;,&quot;CA&quot;,&quot;CA&quot;,&quot;CO&quot;,&quot;CO&quot;,&quot;CT&quot;,&quot;CT&quot;,&quot;DE&quot;, &quot;DE&quot;,&quot;DC&quot;,&quot;DC&quot;,&quot;FL&quot;,&quot;FL&quot;,&quot;GA&quot;,&quot;GA&quot;,&quot;HI&quot;,&quot;HI&quot;,&quot;ID&quot;,&quot;ID&quot;,&quot;IL&quot;,&quot;IL&quot;,&quot;IN&quot;,&quot;IN&quot;,&quot;IA&quot;,&quot;IA&quot;,&quot;KS&quot;,&quot;KS&quot;,&quot;KY&quot;, &quot;KY&quot;,&quot;LA&quot;,&quot;LA&quot;,&quot;ME&quot;,&quot;ME&quot;,&quot;MD&quot;,&quot;MD&quot;,&quot;MA&quot;,&quot;MA&quot;,&quot;MI&quot;,&quot;MI&quot;,&quot;MN&quot;,&quot;MN&quot;,&quot;MS&quot;,&quot;MS&quot;,&quot;MO&quot;,&quot;MO&quot;, &quot;MT&quot;,&quot;MT&quot;,&quot;NE&quot;,&quot;NE&quot;,&quot;NV&quot;,&quot;NV&quot;,&quot;NH&quot;,&quot;NH&quot;,&quot;NJ&quot;,&quot;NJ&quot;,&quot;NM&quot;,&quot;NM&quot;,&quot;NY&quot;,&quot;NY&quot;,&quot;NC&quot;,&quot;NC&quot;,&quot;ND&quot;, &quot;ND&quot;,&quot;OH&quot;,&quot;OH&quot;,&quot;OK&quot;,&quot;OK&quot;,&quot;OR&quot;,&quot;OR&quot;,&quot;PA&quot;,&quot;PA&quot;,&quot;RI&quot;,&quot;RI&quot;,&quot;SC&quot;,&quot;SC&quot;,&quot;SD&quot;,&quot;SD&quot;,&quot;TN&quot;,&quot;TN&quot;,&quot;TX&quot;, &quot;TX&quot;,&quot;UT&quot;,&quot;UT&quot;,&quot;VT&quot;,&quot;VT&quot;,&quot;VA&quot;,&quot;VA&quot;,&quot;WA&quot;,&quot;WA&quot;,&quot;WV&quot;,&quot;WV&quot;,&quot;WI&quot;,&quot;WI&quot;,&quot;WY&quot;,&quot;WY&quot;,&quot;&quot;)</description>
		<content:encoded><![CDATA[<p>Thanks for the workaround. It worked awesome.</p>
<p>To get around the ISPICKVAL gotcha, you can use a case which allows you to basically handle every line item in your picklist using one line in the formula field.  Here is an example of how I did it with state:</p>
<p>CASE(State__c,&#8221;AL&#8221;,&#8221;AL&#8221;,&#8221;AK&#8221;,&#8221;AK&#8221;,&#8221;AZ&#8221;,&#8221;AZ&#8221;,&#8221;AR&#8221;,&#8221;AR&#8221;,&#8221;CA&#8221;,&#8221;CA&#8221;,&#8221;CO&#8221;,&#8221;CO&#8221;,&#8221;CT&#8221;,&#8221;CT&#8221;,&#8221;DE&#8221;, &#8220;DE&#8221;,&#8221;DC&#8221;,&#8221;DC&#8221;,&#8221;FL&#8221;,&#8221;FL&#8221;,&#8221;GA&#8221;,&#8221;GA&#8221;,&#8221;HI&#8221;,&#8221;HI&#8221;,&#8221;ID&#8221;,&#8221;ID&#8221;,&#8221;IL&#8221;,&#8221;IL&#8221;,&#8221;IN&#8221;,&#8221;IN&#8221;,&#8221;IA&#8221;,&#8221;IA&#8221;,&#8221;KS&#8221;,&#8221;KS&#8221;,&#8221;KY&#8221;, &#8220;KY&#8221;,&#8221;LA&#8221;,&#8221;LA&#8221;,&#8221;ME&#8221;,&#8221;ME&#8221;,&#8221;MD&#8221;,&#8221;MD&#8221;,&#8221;MA&#8221;,&#8221;MA&#8221;,&#8221;MI&#8221;,&#8221;MI&#8221;,&#8221;MN&#8221;,&#8221;MN&#8221;,&#8221;MS&#8221;,&#8221;MS&#8221;,&#8221;MO&#8221;,&#8221;MO&#8221;, &#8220;MT&#8221;,&#8221;MT&#8221;,&#8221;NE&#8221;,&#8221;NE&#8221;,&#8221;NV&#8221;,&#8221;NV&#8221;,&#8221;NH&#8221;,&#8221;NH&#8221;,&#8221;NJ&#8221;,&#8221;NJ&#8221;,&#8221;NM&#8221;,&#8221;NM&#8221;,&#8221;NY&#8221;,&#8221;NY&#8221;,&#8221;NC&#8221;,&#8221;NC&#8221;,&#8221;ND&#8221;, &#8220;ND&#8221;,&#8221;OH&#8221;,&#8221;OH&#8221;,&#8221;OK&#8221;,&#8221;OK&#8221;,&#8221;OR&#8221;,&#8221;OR&#8221;,&#8221;PA&#8221;,&#8221;PA&#8221;,&#8221;RI&#8221;,&#8221;RI&#8221;,&#8221;SC&#8221;,&#8221;SC&#8221;,&#8221;SD&#8221;,&#8221;SD&#8221;,&#8221;TN&#8221;,&#8221;TN&#8221;,&#8221;TX&#8221;, &#8220;TX&#8221;,&#8221;UT&#8221;,&#8221;UT&#8221;,&#8221;VT&#8221;,&#8221;VT&#8221;,&#8221;VA&#8221;,&#8221;VA&#8221;,&#8221;WA&#8221;,&#8221;WA&#8221;,&#8221;WV&#8221;,&#8221;WV&#8221;,&#8221;WI&#8221;,&#8221;WI&#8221;,&#8221;WY&#8221;,&#8221;WY&#8221;,&#8221;")</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://sfdc.arrowpointe.com/2007/01/08/map-a-custom-lead-field-to-2-places/comment-page-1/#comment-5954</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 11 Jan 2007 23:00:09 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/2007/01/08/map-a-custom-lead-field-to-2-places/#comment-5954</guid>
		<description>Slick new workaround, Scott! :-)  Hopefully it wouldn&#039;t need to be used for too many fields, and hopefully we&#039;ll see the above ideas implemented someday soon.</description>
		<content:encoded><![CDATA[<p>Slick new workaround, Scott! <img src='http://sfdc.arrowpointe.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   Hopefully it wouldn&#8217;t need to be used for too many fields, and hopefully we&#8217;ll see the above ideas implemented someday soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michaelforce</title>
		<link>http://sfdc.arrowpointe.com/2007/01/08/map-a-custom-lead-field-to-2-places/comment-page-1/#comment-5853</link>
		<dc:creator>michaelforce</dc:creator>
		<pubDate>Tue, 09 Jan 2007 14:55:58 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/2007/01/08/map-a-custom-lead-field-to-2-places/#comment-5853</guid>
		<description>Scott,

I am working on a project now in which I was planning to use formula fields to map to multiple objects... I never would have expected size mismatch errors.  Thanks for the heads up!  And for the solution.  Brilliant.</description>
		<content:encoded><![CDATA[<p>Scott,</p>
<p>I am working on a project now in which I was planning to use formula fields to map to multiple objects&#8230; I never would have expected size mismatch errors.  Thanks for the heads up!  And for the solution.  Brilliant.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

