Help me with a method to get the value displayed in $ not EUR via script in resource_allocation.do

daikhi haithem
Tera Expert

Hello
Anyone can help me with a method to get the value displayed in $ not EUR via script

 

value.png

1 ACCEPTED SOLUTION

Robbie
Kilo Patron
Kilo Patron

Hi @daikhi haithem,

 

What method are you using to return the value? Are you using getValue() ?

Returning values when currency as well as FX and multi-currency is in play is always fun.

 

Have you tried using getDisplayValue() or getCurrencyValue() ?

See the below ServiceNow Docs link for the available methods to help you overcome this.

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks, Robbie

 

https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/currency/concep...

View solution in original post

3 REPLIES 3

Robbie
Kilo Patron
Kilo Patron

Hi @daikhi haithem,

 

What method are you using to return the value? Are you using getValue() ?

Returning values when currency as well as FX and multi-currency is in play is always fun.

 

Have you tried using getDisplayValue() or getCurrencyValue() ?

See the below ServiceNow Docs link for the available methods to help you overcome this.

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks, Robbie

 

https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/currency/concep...

daikhi haithem
Tera Expert

Thanks for the help! This method, getCurrencyValue(), worked for me. I found it through the link you provided. Thanks again!

No worries at all @daikhi haithem. I'm glad I could help.

Thanks also for marking my response correct which will help others with the same/similar question. I've edited the response slightly taking on your feedback so as to help others.

 

Thanks,

Robbie