How to set Timer in workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2019 06:25 AM
Hi
i have request like this,
if 1st - approval didn't approved with in 1-day , then goto setValue "Cancelled"--End
if approved with in 1-day , goto 2nd- approval , if 2nd approval didn't approved with in 1-day, then goto setValue "Cancelled"--End.
if TWO approvals approved with in 1-day then goto Setvalue-" complete"---END.
So how should i use timer here...???
The Workflow is on Custom Table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2019 05:12 AM
Not working If - Condition
answer = ifScript();
function ifScript(){
var app=new GlideRecord('sysapproval_approver');
app.addQuery('sysapproval', current.sys_id);
app.addQuery('state','requested');
app.orderByDesc('sys_created_on');
app.query();
if(app.next())
{
return 'yes';
}else
{
return 'no';
}
}