Get Salesforce User Default Currency in Apex
Sample Code:
String defaultCurrencyCode = UserInfo.getDefaultCurrency(); System.debug('DefaultCurrencyCode-' + defaultCurrencyCode);
Sample Code:
String defaultCurrencyCode = UserInfo.getDefaultCurrency(); System.debug('DefaultCurrencyCode-' + defaultCurrencyCode);
Using below SOQL query we can get organizations default currency in a multiple currency organizations.
Sample Code:
String defaultCurrencyCode = [SELECT IsoCode FROM CurrencyType WHERE IsCorporate = true].IsoCode; System.debug('DefaultCurrencyCode-' + defaultCurrencyCode);