background_scripts

This is an old revision of the document!


Background Scripts


var app = new GlideRecord('sysapproval_approver');
app.addQuery('state','requested');
//app.setLimit(30);
app.query();
while(app.next())
{
    gs.print('Approval count in requested state '+app.getRowCount());
    app.state='approved';
    app.update();
}















  • background_scripts.1734018431.txt.gz
  • Last modified: 2024/12/12 07:47
  • by johnsonjohn