<?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"
	>
<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>
	<pubDate>Fri, 05 Dec 2008 01:31:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Scott Hemmeter</title>
		<link>http://sfdc.arrowpointe.com/2007/01/08/map-a-custom-lead-field-to-2-places/#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's a sample formula I've used before to get values from picklists.  It's a combo of CASE and ISPICKVAL.
&lt;blockquote&gt;&lt;code&gt;
CASE(1,
IF(ISPICKVAL({!Status__c},"Active"), 1, 0),"Active",
IF(ISPICKVAL({!Status__c},"Inactive"), 1, 0),"Inactive",
IF(ISPICKVAL({!Status__c},"On Hold"), 1, 0),"On Hold",
"")
&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-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Ã¢â‚¬Â,"") ) but all I got was a "Syntax Error" for the whole thing.  I tried using ISPICKVAL( Bill_to_Country__c , "Brazil") but then I got the error "Formula result is data type (Boolean), incompatible with expected data type (Text)."  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-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,"AL","AL","AK","AK","AZ","AZ","AR","AR","CA","CA","CO","CO","CT","CT","DE", "DE","DC","DC","FL","FL","GA","GA","HI","HI","ID","ID","IL","IL","IN","IN","IA","IA","KS","KS","KY", "KY","LA","LA","ME","ME","MD","MD","MA","MA","MI","MI","MN","MN","MS","MS","MO","MO", "MT","MT","NE","NE","NV","NV","NH","NH","NJ","NJ","NM","NM","NY","NY","NC","NC","ND", "ND","OH","OH","OK","OK","OR","OR","PA","PA","RI","RI","SC","SC","SD","SD","TN","TN","TX", "TX","UT","UT","VT","VT","VA","VA","WA","WA","WV","WV","WI","WI","WY","WY","")</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-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't need to be used for too many fields, and hopefully we'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-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>
