- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 12:47 AM
When a case is created using a record producer, we want the name of the producer to be updated in one of the custom field on the case form.
Solved! Go to Solution.
- Labels:
-
Multiple Versions
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 12:19 AM
Hi,
you mentioned your custom field is reference to sc_cat_item_producer table
So you just had to use this and use correct field name
cat_item.sys_id -> gives sysId
current.u_customField = cat_item.sys_id;
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
03-14-2022 01:32 AM
you said your custom field refers to sc_cat_item_producer table
for that I already shared the solution
current.u_customField = cat_item.sys_id;
But you have marked other response as correct which is exact copy of what I mentioned.
Would you mind marking appropriate response as correct based on 1st response
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
03-24-2022 12:14 AM
Hi Ankur,
current.u_customField = cat_item.sys_id;
solution didnt work for me. but below solution did work so i have marked it as correct answer.
current.u_custom_field_name.setDisplayValue(cat_item.name);
Regards,
Ravikiran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 12:19 AM
Hi,
you mentioned your custom field is reference to sc_cat_item_producer table
So you just had to use this and use correct field name
cat_item.sys_id -> gives sysId
current.u_customField = cat_item.sys_id;
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
03-10-2022 01:08 AM
Hi,
You can simply add the line with hardcode format.
current.customfieldNAme = 'TestRecordProducer'.
Because the record producer name always static not dynamic. You can hardcode and achieve it.
Regards,
Suresh.
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 02:19 AM
Hi Suresh,
It didnt work.