Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Compare price with value of field Type= currency

snowuser111
Kilo Guru

Hi Experts,

I need to develop a workflow where i need to compare a price value if it is less or more than the required threshold. How do I compare the value of price .

The price is of type 'Currency' and is as below. SO i would like to compare threshold value say   50 >2.40 or less.

find_real_file.png

1 ACCEPTED SOLUTION

3 REPLIES 3

Gowrisankar Sat
Tera Guru

You can make use of:



current.<TOTAL PRICE>.getReferenceValue()



Refer this link for more scripting on currency and price fields:



http://wiki.servicenow.com/index.php?title=Scripting_Currency_and_Price_Fields#gsc.tab=0


hi,


converted to string and worked.


Re: Issue Comparing Values


Glad that it worked perfectly.