- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 01:02 AM
It means Servicenow exhibits the same issue for you when you try it, i.e. you can't use flow designer pills to set the value?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 01:53 AM
Hi Patrick,
I haven't worked extensively on flow designer so cannot comment on that piece.
you can use flow designer pills to set the value but as you said it doesn't work well with price field; possibly it may or may not work for currency field as well
Not sure whether ServiceNow is aware of this.
The reason I think is if you get price value in background script for a particular record it only gives you the integer/float value and not the currency code
var gr = new GlideRecord('incident');
gr.get('af5cf0310794d010540bf2508c1ed094');
var price = gr.u_cost;
gs.info(price); -> prints 101 and not USD;101
The same logic might be used internally to get value from existing record if you use designer pills; so it might be picking only the int/float value and not the code; So I would recommend using script to set that particular field
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 04:25 AM
Hi Patrick,
I am glad to hear the comment has helped.
Saying this, I will appreciate if you close this thread, as answered.
Have a great rest of the day.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2020 01:02 AM
The solution we found was to create a custom Action "CONVERT TO PRICE" and put that into the workflow before the insert/update.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2020 01:50 AM
Glad to know.
Great! It looks like you marked your own response as the correct answer, which may be confusing to others that read this later.
If my reply helped you then please mark my response as correct and helpful.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader