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?

 

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

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Patrick Niessen
Giga Contributor

The solution we found was to create a custom Action "CONVERT TO PRICE" and put that into the workflow before the insert/update.

find_real_file.png

find_real_file.png

 

find_real_file.png

View solution in original post

@Patrick Niessen 

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader