Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to push Record producer name into a custom field on the form created by the very Record producer.

ravikiran0688
Tera Contributor

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.

@Ankur Bawiskar @Allen Andreas @Sandeep Dutta 

1 ACCEPTED SOLUTION

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

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

View solution in original post

16 REPLIES 16

Mahesh23
Mega Sage

Hi @ravikiran0688 ,

try the below code

current.u_custom_field_name.setDisplayValue(cat_item.name);

Regards,

Mahesh

Hi @ravikiran0688 ,

Thank you for marking my response as helpful.

If my response helped please mark my response as correct & helpful

 

Regards,

Mahesh