Record producer script for reference field

denu
Kilo Expert

Hi,

I have a requirement to create a record producer for users to create new incident through portal. However there is one key requirement when user select choices on  "Services Selection" then it should map with reference value in product field on incident form. 

I have created record producer script to map Service Selection with Product on incident from, but when record created through portal reference product field populate but other field which is dot walk through product field (Business service, category, subcategory) field does not auto populate.. These all the fields are from u_product table.

Can someone please help me out here?

find_real_file.png

var services = producer.u_service_selection;
if(services == 'Email'){
	current.u_product = "e21e56954f1ba200aa6bd0311310c750";//Email
}
3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you need to set those from record producer script itself

Business service, category, subcategory

Regards
Ankur

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

Thanks for the response.

When product is populated then other fields are auto populate in the form backend. I am looking for similar behavior through this record producer as well.

@denu 

If you want this on the record producer form then you will require onChange Catalog Client Script on that variable and then populate those values in the other variables

Regards
Ankur

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