how to use watchlist from an service catalog form

Raviteja K
Tera Expert

I have an requirement to add 2 fields that can be filled by user on an record producer form. Those mail ids should be in watch list while receiving notifications . How this can be achieved.

Please advise. Thanks in advance.

3 REPLIES 3

Chuck Tomasi
Tera Patron

Hi Raviteja,



You can use a mutli-select variable (slushbucket) that references the user list. For example: u_watchers. This is stored as a comma separated list of sys_ids, which is exactly what is stored in the watch list.



In the record producer script, you can copy the variable value to your target watch list like this:



current.watch_list = product.u_watchers;


Thank you, this is the field on the catalog form. which will able users to select user list. These users will come under watch list. These users need to receive notifications.



find_real_file.png


In the record producer definition, you'll find a script field. This is run just before the record is actually created. It's similar to a before/insert business rule. If you want to set the watch list on the target task record, you can add a line like I did before.



find_real_file.png



Then you create a notification to those in the watch list (which can be done without script.)



Create an email notification