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

i added if block still it went to approval no and running both timers.

find_real_file.png

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.

is this fine now?and if approved should i leave as it is only no connection with any activity?

find_real_file.png

Hi,

Looks good. You kept same IF after 2nd timer also right.

 

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.