Development questions

Write a SOQL query to convert Currency fields into the user's personal currency in a Multi-Currency org (SELECT Id, convertCurrency(Amount) FROM Opportunity).

DevelopmentMediumDeloitteSalesforcePwC

In a multi-currency org, convertCurrency() returns the amount converted to the running user's personal currency.

soql
SELECT Id, Name, convertCurrency(Amount) FROM Opportunity

You can also filter in a specific currency using WHERE Amount > USD 10000. Note that convertCurrency() can't be used in GROUP BY or aggregate functions in the same way.

soqlscenariomulti-currency