- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 01:57 AM
Hello
Anyone can help me with a method to get the value displayed in $ not EUR via script
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 02:16 AM - edited 01-17-2024 04:02 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 02:16 AM - edited 01-17-2024 04:02 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 03:48 AM
Thanks for the help! This method, getCurrencyValue(), worked for me. I found it through the link you provided. Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 04:01 AM - edited 01-17-2024 04:03 AM
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