- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-15-2020 04:42 AM
Hi,
Is there any way to cancel the change and approvals if scheduled starts has passed before approving the change request.
Please suggest.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-15-2020 05:15 AM
You can create a branch activity and one branch link to approval
Another branch link to timer activity which wait till schedule start date. Once it is crossed add a run script activity and check if the change is approved or not.
If not approved, then you can use the above code and cancel the approvals and end the workflow.
Mark the comment as a correct answer and helpful if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-15-2020 06:58 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-15-2020 07:06 AM
Hi,
The timer will run always. In both timers,
The if should be after the both timer.
So once timer reached, then check if the change is approved or not. If not, then cancel otherwise do nothing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-15-2020 07:11 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-15-2020 07:15 AM
Hi,
Looks good. You kept same IF after 2nd timer also right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-15-2020 07:25 AM
worked little fine but there is a catch here.
there are two approvals.
after first approval i am marking approval as approved and checking in if block if approval is approved or not.if i approved first approval then validation is successful and it is not canceling the change but if second approval i am not approving before scheduled start then it is not canceling the change because in if block i am checking if approved and i am marking it approved after first approval so validation is failing.