BR- Send email to Removed users in watchList
var watchListArray = [];
var oldWatchList = previous.u_watchlist.split(',');
var newWatchList = current.u_watchlist.split(',');
for (var i = 0; i < oldWatchList.length; i++) {
if (newWatchList.join(',').indexOf(oldWatchList[i]<0)){
watchListArray.push(oldWatchList[i].toString());
}
}
gs.eventQueue("event_name",current, watchListArray.toString());
}
Comments
Post a Comment