Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add currencies of the world to a field?

RohanDS
Tera Contributor

Hello peeps,

I have a requirement where I need to define a variable on a catalog item that would show all the currencies of the world. For eg:

Field name: Please select the currency in which the project is being performed.

Drop down or reference should be: USD, EUR, INR, CAD, etc,,,

Is this possible? Do we have predefined table for this?

2 ACCEPTED SOLUTIONS

Karan Chhabra6
Mega Sage

Hi @RohanDS ,

 

You can leverage the 'fx_currency' table for this, create a field of type reference and refer to the 'fx_currency' table.

KaranChhabra6_1-1683752716237.png

 

Output:

KaranChhabra6_2-1683752906649.png

 

 

If my answer has helped with your question, please mark it as correct and helpful

 

Thanks!

 

 

View solution in original post

Hi @RohanDS ,

 

You can add a variable attribute for this reference field, use this line as variable attribute:

ref_ac_columns=name,ref_ac_columns_search=true,ref_ac_order_by=name,ref_auto_completer=AJAXTableCompleter

KaranChhabra6_0-1683822136406.png

Output:

KaranChhabra6_1-1683822196886.png

 

If my answer has helped with your question, please mark it as correct ans helpful

 

Thanks!

 

 

View solution in original post

5 REPLIES 5

RohanDS
Tera Contributor

Thank you this really helps!