- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024 09:03 AM - edited 03-03-2024 11:03 PM
Hello,
We have a requirement that there are two fields "Currency Dollar" and "Currency Pound". Dollar amount needs to be converted to a pound
Could you please anyone help me with this?
Thanks in advance,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024 09:26 AM
Hi @Rama Rao ,
Here is a sample code you can try -
var conv = new sn_currency.GlideCurrencyConverter('USD', 'GBP');
conv.setAmount(100);
var convertValues = conv.convert();
gs.info('Exchanged Amount: ' + convertValues.getAmount());
Please follow the below links, here you will find detailed explanation on how to convert currency-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2024 12:12 AM
Hi @Rama Rao ,
In line no.4 of your UI Action you have written "GPB" it should be "GBP".
Change your line no.4 of UI action to below code -
var conv = new sn_currency.GlideCurrencyConverter('USD', 'GBP');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2024 12:42 AM - edited 03-03-2024 12:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2024 12:59 AM - edited 03-03-2024 01:00 AM
See this must work, update you code according to this.
try this...
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....