How to get Exchange Rate in SuiteScript2.0? Equivalent of nlapiExchangeRate().

Hi All,

Please use below code to get Exchange Rate in SuiteScript2.0:

In SuiteScript1.0:

      nlapiExchangeRate(sourceCurrency, targetCurrency, effectiveDate)

In SuiteScript2.0:

       currency.exchangeRate(options)

Module Used:

       N/currency Module

Please comment if you have any question.

Thanks

Abhi




Comments

  1. what would be the returned rate if the effectiveDate is not yet existing in the Currency Exchange List?

    ReplyDelete
    Replies
    1. Netsuite uses last day's exchange rate, rate will populate again if you change date to another date and then change back to original date after exchange rate is populated in system by Xignite.
      Hope this will help.

      Delete

Post a Comment

Thanks for you message, please join us on Facebook and Linkedin