How to convert other country currency to USD

jai281997
Tera Contributor

Hello,

i am trying to build one logic on my form,  i have 2 fields where we can give currency value

nominal currency&

currency in usd

jai281997_0-1753183814616.png

when i give any value in nominal field value it should automatically convert in USD and should populate in current in USD field 
can anyone please suggest me on this how to build the logic

Thank you!!

8 REPLIES 8

@jai281997 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 
Thanks for the response,
i have used the above as per my requirement but in the above code it is only checking USD currency to our target currency, but as per my requirement in nominal currency we will get different countries currency amount that nominal currency from different country should convert in USD and should visible in settlement amount in USD, could you please help me with this

@jai281997 

that's what I asked earlier what do you mean by nominal currency?

It should be of some country?

I just shared the code to convert from 1 currency to other, please enhance it as per your case.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

GlideFather
Tera Patron

@jai281997 
take a look at these configurations:

KamilT_0-1753188542873.png

 

EDIT: and eventually to system props:

KamilT_1-1753188658634.png

 

 

Check if your instance has the single currency true or false.

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */