How to Get a list field values as comma seperated

SI Function:  

inAListFied: function(incident) {

    var userID = gs.getUserID();

    var watchList = incident.getValue('watchlist');

    if (watchList) {

        var arrIncident = watchList.split(",");

        var ListValues = (arrIncident.indexOf(userID) >= 0);

      }

    return ListValues;

},

Comments

Popular posts from this blog

Background Scripts

Glide Record Cheat Sheet

Setup OAuth2 authentication for RESTMessageV2 integrations