Convert currency to currency.
Wed Jul 16 2025 06:47:49 GMT+0000 (Coordinated Universal Time)
Saved by
@MinaTimo
Static void main(Args args)
{
CurrencyExchangeHelper currencyExchangeHelper;
AmountMst amountMST;
CurrencyCode toCurrency = ‘AED’;
CurrencyCode FromCurrency = ‘USD’;
AmountCur amountCur = 5000;
currencyExchangeHelper = CurrencyExchangeHelper::newExchangeDate(Ledger::current(), systemDateGet());
amountMST = currencyExchangeHelper.calculateCurrencyToCurrency(toCurrency, fromCurrency,amountCur,true);
info(strFmt(“%1”, amountMST))
}
// https://community.dynamics.com/blogs/post/?postid=8326aa14-b13f-4365-959b-4b835ee540c1
content_copyCOPY
Comments