Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Launch Workflow on Item Delete?

  Asked By: Madhavi    Date: Oct 02    Category: Sharepoint    Views: 13094

Is there a way to create a Workflow (in Designer) that will launch
when a list item is Deleted (but not when the item is edited?) Or for
a workflow to detect that the item that launched it has been deleted?

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Terrell Bates     Answered On: Oct 02

Workflows always fire after the event that causes them. Since the workflow
needs the context of the object to run in and the document is gone once its
deleted you can't attach a workflow  to the deletion of a document. You can
write event handlers in Visual Studio that will fire when a user asks that a
document be deleted, but not a workflow.

 
Answer #2    Answered By: Wilson Bryan     Answered On: Oct 02

you can not start a workflow  on when item  is deleted.(because by design u
can start the workflow only when item is created or edited)

so the to start a workflow on item deletion u need to write a Event Handler
on that list  for item deleted  or deleting event.

and on that event call the workflow by Code.

Let me know if this works for you.

I have the code to start the workflow.

 
Answer #3    Answered By: Angela Gosselin     Answered On: Oct 05

one workaround is that instead of using the delete action on the edit menu to get rid of the item you can create a workflow that you can run manually that first does whatever you need to do, then deletes the item. for instance I need one that subtracts 1 from a list tally that I can based on the number of items meeting my conditions, when one is deleted. so instead of using the delete function in edit menu, I click on workflows in the edit menu and then click on manual delete. that then subtracts 1 from my corresponding list and then deletes the item.

 
Didn't find what you were looking for? Find more on Launch Workflow on Item Delete? Or get search suggestion and latest updates.




Tagged: