---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideCurrencyExchangeValue - Scoped

# GlideCurrencyExchangeValue - Scoped {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The GlideCurrencyExchangeValue API provides methods to access information related to FX Currency conversions.

Refer to the [GlideCurrencyConverter()](https://servicenow-prod.fluidtopics.net/MSHwJDPDIQBfYuMVn5z3pw#GlideCurrencyConverterScopedAPI "The GlideCurrencyConverter API provides methods to convert one currency value to another, such as converting US dollars into European euros.") API for methods that return a
GlideCurrencyExchangeValue object.

This class runs is in the `sn_currency` namespace.  
Note:  
There is no constructor for this class.

## GlideCurrencyExchangeValue - getAmount() {#ariaid-title2}

Returns the currency amount after the conversion.
{#Scoped-GCEV-getAmount__table_bly_wqt_2y__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 1. Parameters]

{#Scoped-GCEV-getAmount__table_bly_wqt_2y} {#Scoped-GCEV-getAmount__table_cly_wqt_2y__entry__2}

| Type | Description |
|-|-|
| Number | Currency amount after the conversion. |
[Table 2. Returns]

{#Scoped-GCEV-getAmount__table_cly_wqt_2y}  
This example assumes a conversion rate of 1 Euro = .92 US dollars.

    var conv = new sn_currency.GlideCurrencyConverter('EUR', 'USD');
    conv.setAmount(100);
    var convertValues = conv.convert();
    gs.info('Exchanged Amount: ' + convertValues.getAmount());

Output:

    Exchanged Amount: $92.00

## GlideCurrencyExchangeValue - getCurrency() {#ariaid-title3}

Returns the converted to currency type.
{#Scoped-GCEV-getCurrency__table_z1s_v5t_2y__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 3. Parameters]

{#Scoped-GCEV-getCurrency__table_z1s_v5t_2y} {#Scoped-GCEV-getCurrency__table_abs_v5t_2y__entry__2}

| Type | Description |
|-|-|
| String | Three-letter ISO currency code of the converted to currency. |
[Table 4. Returns]

{#Scoped-GCEV-getCurrency__table_abs_v5t_2y}  
This example shows how to call the method.

    var convertValues = new sn_currency.GlideCurrencyConverter('USD', 'JPY');
    convertValues.setAmount(100);
    gs.info('Exchanged Currency (To): ' + convertValues.convert().getCurrency());

Output:

    Exchanged Currency (To): JPY

## GlideCurrancyExchangeValue - getOriginalCurrency() {#ariaid-title4}

Returns the original, pre-conversion currency type.
{#Scoped-GCEV-getOrigCurr__table_d5y_ylb_fy__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 5. Parameters]

{#Scoped-GCEV-getOrigCurr__table_d5y_ylb_fy} {#Scoped-GCEV-getOrigCurr__table_e5y_ylb_fy__entry__2}

| Type | Description |
|-|-|
| String | Three-letter ISO currency code of the currency converted from. |
[Table 6. Returns]

{#Scoped-GCEV-getOrigCurr__table_e5y_ylb_fy}  
This example shows how to call the method.

    var converter = new sn_currency.GlideCurrencyConverter('USD', 'JPY');
    converter.setAmount(999.999)
    var convertValues = converter.convert();
    gs.info('Original Amount: ' + convertValues.getOriginalCurrency());

Output:

    Original Amount: USD

## GlideCurrencyExchangeValue - getOriginalValue() {#ariaid-title5}

Returns the original, pre-conversion amount.
{#Scoped-GCEV-getOrigValue__table_tkp_zkb_fy__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 7. Parameters]

{#Scoped-GCEV-getOrigValue__table_tkp_zkb_fy} {#Scoped-GCEV-getOrigValue__table_ukp_zkb_fy__entry__2}

| Type | Description |
|-|-|
| Number | Original amount before conversion. |
[Table 8. Returns]

{#Scoped-GCEV-getOrigValue__table_ukp_zkb_fy}  
This example shows how to call the method.

    var converter = new sn_currency.GlideCurrencyConverter('USD', 'JPY');
    converter.setAmount(999.999)
    var convertValues = converter.convert();
    gs.info('Original Amount: ' + 'convertValues.getOriginalAmount());

Output:

    Original Amount: 999.999

## GlideCurrencyExchangeValue - getRate() {#ariaid-title6}

Returns the exchange rate used during the conversion.
{#Scoped-GCEV-getRate__table_t4h_hmb_fy__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 9. Parameters]

{#Scoped-GCEV-getRate__table_t4h_hmb_fy} {#Scoped-GCEV-getRate__table_u4h_hmb_fy__entry__2}

| Type | Description |
|-|-|
| Number | Exchange rate used in the currency conversion. |
[Table 10. Returns]

{#Scoped-GCEV-getRate__table_u4h_hmb_fy}  
This example shows how to call the method.

    var converter = new sn_currency.GlideCurrencyConverter('EUR', 'USD');
    converter.setAmount(999.999)
    var convertValues = converter.convert();
    gs.info('Original Amount: ' + convertValues.getRate());

Output:

    Exchange rate: 1.0559

## GlideCurrencyExchangeValue - getRateSysId() {#ariaid-title7}

Returns the sys_id of the record in the rate table used in the currency conversion.
{#Scoped-GCEV-getRateSysId__table_fbq_q4b_fy__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 11. Parameters]

{#Scoped-GCEV-getRateSysId__table_fbq_q4b_fy} {#Scoped-GCEV-getRateSysId__table_gbq_q4b_fy__entry__2}

| Type | Description |
|-|-|
| String | Sys_id of the rate table used in the currency conversion. |
[Table 12. Returns]

{#Scoped-GCEV-getRateSysId__table_gbq_q4b_fy}  
This example shows how to call the method.

    var converter = new sn_currency.GlideCurrencyConverter('USD', 'JPY');
    converter.setAmount(999.999)
    var convertValues = converter.convert();
    gs.info('Rate table sys_id: ' + convertValues.getRateSysId());

Output:

    Original Amount: 99ebb4156fa831005be8883e6b3ee4b9


