- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 12:35 AM
I am working on a catalog flow which creates asset records automatically and sets the cost and currency type(like $, Euro etc), I am unable to set the currency type as this is not a separate field on an Asset record. And it is defaulting to $ each time. COuld someone help?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 04:21 AM
PFB.
1. Variable set with 2 variables.
-> Currency type - Ref field
-> Price - String field
Add below variable attribute to the currency type field. So that users can search with both the code and symbol.
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=code;symbol,ref_ac_columns_search=true,ref_ac_display_value=false
Flow:
The "item" is missing in your script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 06:27 AM
I believe I informed the same to use the correct outcome and also shared a gif for the same.
You might have missed it
As per new community feature you can mark multiple responses as correct.
If my response helped please mark it correct as well so that it benefits future readers.
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-23-2025 01:13 AM
Hi @chaithra10
Try to set that field using inline script.
PFB the community post with similar requirement.
https://www.servicenow.com/community/developer-forum/change-currency-code-of-a-field-via-script/m-p/...
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 01:25 AM
Thanks for the response. I do not want to convert any value. I simply want to pass the currency type from catalog variables to the asset record in hardware table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 01:37 AM - edited ‎04-23-2025 01:37 AM
@chaithra10
Yeah.. It's just a sample. PFB the script to set the currency type. Do the same in your flow inline script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2025 02:02 AM
@chaithra10
Catalog item with two variables.
1. Currency type - Reference variable - table: fx_currency.
2. Price - Single line text.
Flow:
Output:
Regards,
Siva