Hello All,
We may or may not have come across a situation where creating Event receiver is not feasible on delete item event. This is a hack on the functionality where you can start a workflow when item is deleted. This involves creating a delete item workflow and adding that as a quick action menu item. So here is how to do it:
- Create a custom list.
- Configure permissions on the list so that users will not have the ability to delete the items. For this, I create a new permission leavel as "Contribute - No Delete". Once this is completed, users will not see the option to delete items within this list.
- Next, we want to create a workflow that we want to start when item is deleted. Click on List tab, Create a workflow in Nintex workflow.
- Open workflow settings.
- Enter Title
- Select the option - "Enable workflow to start from the item menu".
- Menu Item label would be "Delete Item". Menu item image URL-"_layouts/images/delete.gif"
- Menu Item Position - 0. For other positions on the quick menu, see the list at the
- Save the settings
- Now lets create few actions in the workflow. In this workflow i'm going to send email to the person who created the item that the item has been deleted by workflow initiator. Next action would be to delete the item. This action has to be run as Workflow Owner because users do not have permissions to perform delete operation.
- Thats it. Publish the workflow and create item in your list. Use menu item to delete it and you should receive an email.
Extras:
List of Quick launch menu positions:
0 – Top Position
200 – Second position
255 – Third position
898 – Fourth position
900 – Fifth position
1000 – Sixth position
1050 – Seventh position
1100 – Eighth position
1175 – Ninth position
2000 – Last position
As an additional step, i also customized the Start workflow page as below.
Hope its usefull.