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
VikasVikas 

Can I access default Organization Currency from Sforce API?

Hi All,

 

Can I access default Organization Currency from Sforce API? If yes, which entity and field gives me this?

Thanks in advance.

DevAngelDevAngel

Hi Vikas,

The way to determin what the default is for the org is to do a DescribeSObject on the User object.  Inspect the picklist values for the DefaultCurrencyIsoCode field.  If you have only one, then that is the defualt (ie the org is not multi-currency or there is only one currency configured).  If there are more than one, the iterate the picklist values.  There is a property on the picklist values called defaultValue.  This property will be true for the org default currency.

Cheers

benjasikbenjasik
There's also info on getUserInfoResult you might find useful:

userDefaultCurrencyIsoCode -> Default currency ISO code. Applicable only when organizationMultiCurrency is True. When the logged in user creates any objects that have a currency ISO code, the server uses this currency ISO code if it is not explicitly specified in the create call.