How can I add records to a related list via record producer or other catalog item?

jonw1
Mega Expert

I'm imagining a list collector variable on a catalog item, where the user-selected items on that list, eventually populate a related list on some resulting record.

Examples:

A change request (standard change catalog item) where the user is able to specify multiple service requests that are being addressed by the implementation of that change ... populate a requested items related list on the change request record.

A service request where the user will specify multiple CIs or multiple users that are involved, e.g., terminate accounts for several users, or install software on multiple desktop computers ... populate a users or computers related list on the requested item record.

1 REPLY 1

sebastian_g_snc
ServiceNow Employee
ServiceNow Employee

Hi,

the list collector lets you select existing records from a related table. but in the end you get 'just' a comma separated list of sys_ids. I personally don't like the list collector, but it is a good way to start some implementation like this.

I don't know all your details, but if you want to have these related records in a related list afterwards, you will have to link the related record to the request programmatically. You will have to put a couple lines of code into the record producer script / define an after insert business rule to actually link the related records with the request. Then they will show up in the respective related list.

Hope that helps

Seb