GlideCurrencyValue - Scoped
-
- UpdatedJan 30, 2025
- 1 minute read
- Yokohama
- API reference
The GlideCurrencyValue API provides methods that return the currency code and original currency from an associated GlideCurrencyParser.parse() call.
This class runs is in the sn_currency
namespace.
Note: There is no constructor for this class.
GlideCurrencyValue - getAmount()
Returns the currency amount originally passed into the associated GlideCurrencyParser.parse() call.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Original currency passed into the parse() method. |
Example
This example shows how to call the method.
Output:
GlideCurrencyValue - getCurrencyCode()
Returns the currency code used to parse the currency in the associated GlideCurrencyParser.parse() call.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Three-letter ISO currency code used to parse the currency. |
Example
This example shows how to call the method.
Output: