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

@ravikiran0688 

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

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

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

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

ersureshbe
Giga Sage
Giga Sage

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.

Regards,
Suresh.

Hi Suresh,

It didnt work.