1

How do I get the currency in which asset price is stored?

Can I write something like asset.currency in Apex?

I'm creating a package for org with multiple currencies, and I need to convert the asset price to one currency -- that's why I'm asking this question.

1

See this for information on currency data type

For organizations that have the multicurrency option enabled, the CurrencyIsoCode field is defined for any object that can have currency fields. The CurrencyIsoCode field and currency fields are linked in a special way. On any specific record, the CurrencyIsoCode field defines the currency of that record, and thus, the values of all currency fields on that record will be expressed in that currency.

To perform currency conversions, client applications can look up the CurrencyIsoCode in the CurrencyType object.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.