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
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter