- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2023 10:01 AM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2023 10:05 AM
In the producer's script you need to add something like
current.setValue("caller_id", gs.getUserID());

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2023 10:05 AM
In the producer's script you need to add something like
current.setValue("caller_id", gs.getUserID());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2023 10:51 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2023 10:53 AM
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".