I created a very simple 2013 List Workflow in my SPO site using the designer.

It does 3 things:

  1. "Delete item in Current Item"
  2. then Email "my email"
  3. Go to "End of Workflow"

It deletes the item, emails me, and ends.

However, it never goes to the Recycle Bin. I've checked the first and second stage that are available to me in the navigation and site settings. I can confirm that a NORMAL delete through SPO in the same libraries sends those docs to the recycle bin.

Is there another way around this? I need it to go the Recycle Bin. I don't mind coding it but I have never created a WSP so I don't know that I'm even set up for that. I've seen Event Handlers mentioned a lot but I'm not sure where to start.

Thanks!

有帮助吗?

解决方案

Are you able to use a 2010 workflow in your environment? I ran into this issue a while back, and found that for some reason a 2010 workflow sends it to the recycle bin, but a 2013 permanently deletes it!

其他提示

Yes you can but you'll require a REST Call like below:

http://<sitecollection>/<site>/_api/web/lists(listid)/items(itemid)/recycle()

Create the API and call it within your workflow, this way it will work with 2013 workflows.

许可以下: CC-BY-SA归因
scroll top