Adding external DLs to WatchList

sgmartin
Kilo Guru

Our client wants to be able to add external Distribution Lists (DL) to the WatchList of an Incident.  For another project, I've created a custom table and with the use of LDAP Imports, I'm importing all the Global Security Groups and Distribution Lists from our Active Directory.  They would like to be able to select these DLs using the same type of reference field, but this time to the custom table that has the lists.  Is this even possible?

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

The watch list is a glide list type and it points to sys_user so you can pick users. You can also add an email field below it and use that to type email addresses such as the DLs you use (e.g. my_dl@mycompany.com). 

That being said, while the watch cannot do this (because it references sys_user) you could use a separate list field that points to you DLs table. Then they could pick from the lists, but it would a separate field. You could also have to reference this field on the notifications that go out to include them in the Cc (typically by scripting in a mail script).

View solution in original post

7 REPLIES 7

I now understand that the watch list is dedicated pointed to the sys_user table and in my email script I can print to the log the users that are in that watch list.  What I'm struggling with is if I have a separate list collector that is pointing to my custom table and I want to get the values that I add to that list collector.  I believe I have read somewhere that you can add external email addresses to a watch list.  That's basically what I'm trying to do here.  Add the email address of a DL to the end of the watch list and I should be able to do that with your ListUtil script.  But getting the values out of the list collector is where I'm failing.

List collector name is u_request_watchlist2.

I've tried:
var list = current.variables.u_request_watchlist2.getDisplayValue();

var list = current.u_request_watchlist2.getDisplayValue();
var list2 = current.variables.u_request_watchlist2.toString().split(',');

Everything returns undefined.

 

BTW - Does a List Collector pointing to the sys_user table automatically make it a watch list?

The reason I ask is, my watch list on the form is a List Collector name u_request_watchlist and using your ListUtil script I am simply using:

var lu = new ListUtil(current.watch_list);

gs.log('Watchlist=' + lu.getList());

and it pulls the users from that List Collector.

sgmartin
Kilo Guru

Saw your reply to a post from a couple years ago and wanted to verify that was still the case.  I also grabbed your Script Include (ListUtils).

 

Thx Chuck

sgmartin
Kilo Guru

I now understand that the watch list is dedicated pointed to the sys_user table and in my email script I can print to the log the users that are in that watch list.  What I'm struggling with is if I have a separate list collector that is pointing to my custom table and I want to get the values that I add to that list collector.  I believe I have read somewhere that you can add external email addresses to a watch list.  That's basically what I'm trying to do here.  Add the email address of a DL to the end of the watch list and I should be able to do that with your ListUtil script.  But getting the values out of the list collector is where I'm failing.

List collector name is u_request_watchlist2.

I've tried:
var list = current.variables.u_request_watchlist2.getDisplayValue();

var list = current.u_request_watchlist2.getDisplayValue();
var list2 = current.variables.u_request_watchlist2.toString().split(',');

Everything returns undefined.

 

BTW - Does a List Collector pointing to the sys_user table automatically make it a watch list?

The reason I ask is, my watch list on the form is a List Collector name u_request_watchlist and using your ListUtil script I am simply using:

var lu = new ListUtil(current.watch_list);

gs.log('Watchlist=' + lu.getList());

and it pulls the users from that List Collector.