Force end the workflow

Feddy
Kilo Sage

Hi Team , 

We have two catalog item as below 

1. to add access when the start time is met and to revoke access when the end time is met
2  User can submit another request to revoke the access well.

I need to move the first catalog item workflow end activity if the user submits the second catalog item request.
I am able to update the workflow context and able to cancel the workflow as well but the workflow is not moving to end activity.

Any inputs on this would be much appreciated !

1 ACCEPTED SOLUTION

Hi,

try to cancel the workflow using script then

var workflow = new Workflow();

workflow.cancel(grReqItem); 

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

10 REPLIES 10

@Feddy 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader