How to cancel approvals and change if scheduled starts has passed.

karishma
Mega Expert

Hi,

Is there any way to cancel the change and approvals if scheduled starts has passed before approving the change request.

Please suggest.

1 ACCEPTED SOLUTION

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.

View solution in original post

22 REPLIES 22

it worked fine if i am not approving the change till scheduled start but if i am approving it after that also it is running that timer and it is cancelling the change.if both approved within time period then it should move further and and close the change but it is cancelling because of first timer. 

find_real_file.png

both timers ran at the same time

Both times ran at the same time, because they ran at the scheduled start time.

But once the timer reached you need to have if activity to check if the change is approved or not. If not approved, then you have to cancle, otherwise, do nothing.

The timer will run anytime.. hence the condition to check once timer reached if change is approved or not is needed.

Mark the comment as a correct answer and also helpful once worked.