Compartilhar via


ExchangeRate::getVariableExchangeRate Method

Gets the variable exchange rate for the specified exchange rate currency pair.

Syntax

client server public static CurrencyExchangeRate getVariableExchangeRate(
    CurrencyCode _fromCurrencyCode, 
    CurrencyCode _toCurrencyCode, 
    ExchangeRateTypeRecId _exchangeRateType, 
    date _transactionDate, 
    boolean _getReciprocalIfPrimaryNotFound)

Run On

Called

Parameters

  • _transactionDate
    Type: date
    The transaction date.
  • _getReciprocalIfPrimaryNotFound
    Type: boolean
    Determines whether to retrieve the reciprocal exchange rate when the primary exchange rate is not found.

Return Value

Type: CurrencyExchangeRate Extended Data Type
The variable exchange rate for the specified exchange rate currency pair.

Remarks

It is best to use the ExchangeRateHelper class to retrieve exchange rate information since this method only deals with variable exchange rates and does not take Euro triangulation into account.

See Also

Reference

ExchangeRate Table