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

Popular posts from this blog

Background Scripts

Glide Record Cheat Sheet

Setup OAuth2 authentication for RESTMessageV2 integrations