Add user to watchlist

steveturley
Tera Guru

I've been using a Variable Set to allow our users to add other users of their choice to the watchlist of Request Items and Incident (via a Record Producer)

This was working fine and still does for incident, but now the code for RITM doesn't work. The script for the business rule to add the user to the RITM is below. Tbh, the user value doesn't seem to be being passed to the RITM anymore.

 

(function executeRule(current, previous /*null when async*/ ) {

    if (current.variables.user_to_be_added_to_watchlist) {
        current.watch_list = current.variables.user_to_be_added_to_watchlist;
    }

})(current, previous);
 
Thanks!
1 ACCEPTED SOLUTION

steveturley
Tera Guru

Got it! Discrepancy between my variable name and my business rule.

 

Gaaaaaaaaaaaaaaaaaaaaaaaaaah.

View solution in original post

20 REPLIES 20

steveturley
Tera Guru

Got it! Discrepancy between my variable name and my business rule.

 

Gaaaaaaaaaaaaaaaaaaaaaaaaaah.