ServiceNow GlideappVariablePoolQuestionSet features (Service Catalog variables)
var emptyVariables = [];
var readonlyVariables = []; var keys = []; var set = new GlideappVariablePoolQuestionSet(); set.setRequestID(current.request_item); set.load(); var vs = set.getFlatQuestions();for (var i = 0; i < vs.size(); i++) {
var sDisplVal = vs.get(i).getDisplayValue().toString();//--Display Value
var sLabel = vs.get(i).getLabel().toString();//-- label text
var sField = vs.get(i).getName().toString();//--variable name (e.g. requested_for)
}
Is there a favor of this that works a) in a scoped app and b) in a record producer?
ReplyDeleteHi DLundy apologies for late reply as I seem to get an awful lot of spam comments. Might be worth checking the docs and developer sites to see if your question is answered there
ReplyDelete