cancel
Showing results for 
Search instead for 
Did you mean: 

clear workflow

George_Tarasi
Star Contributor
Star Contributor

 

Would like to loop through all lifecycles to clear all documents (for DEV environment).  I already have the code to clear a queue  but don't see anything for looping through lifecycles

2 REPLIES 2

Craig_Statt
Confirmed Champ
Confirmed Champ

You can also do this by creating an ADMIN lifecycle and using a custom query.

I simply query ITEMLC or WORKITEMLC and pull all Doc ID's   drop that into a SQL based custom query and add all those documents into an admin lifecycle that has a task that removes documents from all lifecycles.

You can use this to throw some LOG entry in if you want if this is production.

 

 

 

Thanks.  Could you possibly post that query?