GlideCurrencyExchangeValue - Scoped
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The GlideCurrencyExchangeValue API provides methods to access information related to FX Currency conversions.
Refer to the GlideCurrencyConverter() API for methods that return a GlideCurrencyExchangeValue object.
This class runs is in the sn_currency
namespace.
GlideCurrencyExchangeValue - getAmount()
Returns the currency amount after the conversion.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Number | Currency amount after the conversion. |
Example
This example assumes a conversion rate of 1 Euro = .92 US dollars.
Output:
GlideCurrencyExchangeValue - getCurrency()
Returns the converted to currency type.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Three-letter ISO currency code of the converted to currency. |
Example
This example shows how to call the method.
Output:
GlideCurrancyExchangeValue - getOriginalCurrency()
Returns the original, pre-conversion currency type.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Three-letter ISO currency code of the currency converted from. |
Example
This example shows how to call the method.
Output:
GlideCurrencyExchangeValue - getOriginalValue()
Returns the original, pre-conversion amount.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Number | Original amount before conversion. |
Example
This example shows how to call the method.
Output:
GlideCurrencyExchangeValue - getRate()
Returns the exchange rate used during the conversion.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Number | Exchange rate used in the currency conversion. |
Example
This example shows how to call the method.
Output:
GlideCurrencyExchangeValue - getRateSysId()
Returns the sys_id of the record in the rate table used in the currency conversion.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Sys_id of the rate table used in the currency conversion. |
Example
This example shows how to call the method.
Output: