can we merge description and other field data in the description of the facility request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 04:38 AM
can we merge description and other field data in the description of the facility request
using only record procuder script not cluent script
I have wrote this
but its not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 04:46 AM
I could see it's working as expected.
If my response helped please mark it correct and close the thread 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
05-29-2025 04:47 AM
Have you tried logging the values after the record producer's submission?
add something like
And you will see what values it gets you and eventually you can add there "producer.u_need_replacement_vehicles.getDisplayValue()"
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 04:54 AM
EDIT: I just tested it and it works okay, it depends on the field type (reference, string etc.) getDisplayValue() for references and dates, toString() for sys ids..
for the logging above, then use this URL:
https://your-instance.service-now.com/syslog_list.do?sysparm_query=sys_created_onONToday%40javascrip...
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */