Thursday, September 27, 2018

ServiceNow workflow run script to check if all the catalog tasks are closed for the current RITM

var tsk = new GlideRecord('sc_task');
tsk.addQuery('request_item', current.sys_id);
tsk.addActiveQuery();
tsk.query();

if(tsk.next()){
answer = false;
}
else{
answer = true;
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.