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
cgosscgoss 

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.

apaiapai

Have you tried this :

 

User.CurrencyIsoCode
  

User.DefaultCurrencyIsoCode

cgosscgoss

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.

Anu-SFDCAnu-SFDC

Any Solutions??

 

I stucked with the same problem...

 

 

Anu

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."
https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_getuserinfo_getuserinforesult.htm