After Creation of Record Producer populate caller name

Abhijeet Pawar
Tera Contributor

Hello All,

I have created a record producer to generate records in an incident form. but after submitting that record producer form I want to populate the caller filed with the logged-in user name.

how can I achieve this functionality can anyone please guide me on this?

Thank You.

1 ACCEPTED SOLUTION

DrewW
Mega Sage
Mega Sage

In the producer's script you need to add something like

current.setValue("caller_id", gs.getUserID());

 

View solution in original post

3 REPLIES 3

DrewW
Mega Sage
Mega Sage

In the producer's script you need to add something like

current.setValue("caller_id", gs.getUserID());

 

Hello @DrewW ,

I want to populate service desk group in assignment group field.

I have written one line script for that but its not working.

current.setValue('Assignment group','d625dccec0a8016700a222a0f7900d06');

can you please guide me on this.

Thank You

Its because you have the field name wrong.  You do not use the label of the field you use the field name.  If you have the access in ServiceNow you can right click on the field label and it will show you a menu that will have the field name.

In this case the field name is "assignment_group".