I written a Record Producer script for auto populate field values on incident form

Srinivasu2
Tera Contributor

Hi Community,

 

I written a Record Producer script for auto populate field values on incident form (using sys id's of field values)

 

Instead of hard coding with sys id's how to auto populate field values dynamically

 

Srinivasu2_0-1716890519740.png

 

Thanks,

Srinivasu

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

If by dynamically you mean that you have record producer variables of the reference type that are storing the sys_ids, then use the format:

current.assignment_group = producer.variable_name;

 

Community Alums
Not applicable

Hi @Srinivasu2 ,

Please try below code 

if(producer.contact_type == "self-service"){
	current.u_categorization = producer.<variable_backend_name>
	current.assignment_group = producer.<variable_backend_name>
}

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak