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

How do I get the Org's currency code in Apex?

From the API, you can do a getUserInfo() request, and the result contains a property for orgDefaultCurrencyIsoCode. This is the value of the currency for the organization in a single-currency org.


Any idea how I can get this value from Apex? The UserInfo system method does not have the same method, and UserInfo.getDefaultCurrency() returns null in a single-currency org.


Have you tried this :





Yes, I've tried all the System context objects, as well as using the explorer to check the DB for users and Organization, to no avail.


Any Solutions??


I stucked with the same problem...




Anais Ofranc 15Anais Ofranc 15
You can try this : getUserInfo().currencySymbol;
"currency symbol to use for displaying currency values. Applicable only when organizationMultiCurrency is false."