You need to sign in to do that
Don't have an account?
Nobu.S
How to get CurrencyIsoCode list in Apex class?
Hello.
I created an Apex Class for csv data importing function. When a data for CurrencyIsoCode was wrong/blank, 'try/catch' like code below doesn't work and salesforce shows a validation error.
*my organization uses multi-currency function
To avoid this situation, I'd like to get current CurrencyIsoCode list in the apex class. Is there some way to get such list as Set<String>?
I created an Apex Class for csv data importing function. When a data for CurrencyIsoCode was wrong/blank, 'try/catch' like code below doesn't work and salesforce shows a validation error.
*my organization uses multi-currency function
String cur = 'USDD'; PriceBookEntry pbe = new PriceBookEntry(); try{ pbe.CurrencyIsoCode = cur; } catch(Exxception e){ .... }
To avoid this situation, I'd like to get current CurrencyIsoCode list in the apex class. Is there some way to get such list as Set<String>?
Best Answer chosen by Nobu.S
Nobu.S
solution found