How to get currency type in FX currency field

Shusovit Dutta
Tera Contributor

I have a FX currency type field and I want to get the currency type of the field. For example, there its USD.

Tried with getCurrencyCode()/getReferenceCurrencyCode() but it does not work.

 

ShusovitDutta_0-1709041386926.png

 

2 REPLIES 2

Anirudh Pathak
Mega Sage

Hi @Shusovit Dutta ,

Can you share your code which you have tried, is it client side you want to get the currency code or server side?

Shusovit Dutta
Tera Contributor
need for server side.
//  var currencyField = current.<field_name>;
// var currencyType = currencyField.getCurrencyCode();
// gs.addInfoMessage(currencyType);