You need to sign in to do that
Don't have an account?
nonprofit admin
Message Edited by nonprofit admin on 01-31-2008 08:10 PM
Want to copy currency field
Hi,
I need to copy the standard multiple currency picklist into another picklist so that I can just have the Currency Code. I was optimistic with the following formula, but there's that missing ) !!
(
IF(
OR(
ISPICKVAL(CurrencyIsoCode, "EUR - Euro"),
)
"EUR",
(
IF(
OR(
ISPICKVAL(CurrencyIsoCode, "USD - U.S. Dollar"),
)
"USD")))
IF(
OR(
ISPICKVAL(CurrencyIsoCode, "EUR - Euro"),
)
"EUR",
(
IF(
OR(
ISPICKVAL(CurrencyIsoCode, "USD - U.S. Dollar"),
)
"USD")))
Any suggestions?
Thanks much!
The following does not have syntax errors - but only returns USD as a value??
if(ispickval(CurrencyIsoCode, "EUR - Euro"), "EUR",
if(ispickval(CurrencyIsoCode, "USD - U.S.Dollar"), "USD"," USD"
)
)
if(ispickval(CurrencyIsoCode, "USD - U.S.Dollar"), "USD"," USD"
)
)
Message Edited by nonprofit admin on 01-31-2008 08:10 PM
Your 2nd formula is the right syntax. The first one is full of problems.
Currency is one of those standard Salesforce picklist fields with a bit of "extra behavior" added by Salesforce -- that being the addition of text to the actual picklist value when it's viewed in the UI. The literal picklist values for this field are simply the three letter code without the extra text (i.e. USD, EUR, CAD, GBP.... etc.).
Try writing your formula with CurrencyIsoCode, "EUR" instead of CurrencyIsoCode, "EUR - Euro".
if(ispickval(CurrencyIsoCode, "USD"), "USD","n/a"
)
)
Message Edited by TA_Invisible on 02-05-2008 05:04 PM