function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dragon SlayerDragon Slayer 

ConvertCurrency


I am trying to convert the Opportunity Amount using the ConvertCurrency function in a formula. I used ConvertCUrrency(Amount), but I am getting "Error: Incorrect parameter type for function 'convertCurrency()'. Expected Currency, received Number" even though the type of Amount field is Currency. Any idea why is it so and how can it be fixed? Multi-Currency is already enabled for my organization.

AmitAmit (Salesforce Developers) 
Hello,

Please refer following links for more information : 

http://www.salesforce.com/us/developer/docs/dbcom_soql_sosl/index_Left.htm#StartTopic=Content/sforce_api_calls_soql_querying_currency_fields.htm?CSHID=sforce_api_calls_soql_querying_currency_fields.htm

https://developer.salesforce.com/forums/ForumsMain?id=906F00000008omIIAQ

http://salesforcedeveloperblog.blogspot.com/2011/07/currency-conversion-issue.html

Thanks,

Amit Bhardwaj


Dragon SlayerDragon Slayer
Hi Amit,

Thanks for the links. But, none of these explain why I can't use ConvertCurrency on a currency field. Do you know why it isn't working?