1

I'm curious as to how i can create a workflow in SharePoint designer that can delete ( or erase content) in an objects list? Does anyone have an idea?

1

Based on your comments (namely that this should apply to already existing items), I would recommend not using a workflow, but a Retention policy instead. One of the advantages to this, is that cancelling the workflow will prevent the item from being deleted at the correct time.

SharePoint Mavern has a really good guide here (https://sharepointmaven.com/set-retention-deletion-policies-files-folders-sharepoint/). You're probably looking for #3 Document Libraries.

The gist of Retention is that you can set a time period to keep an item, and on the expiration date the item is deleted. Below you can see some of the options available when configuring the policy.

Retention Policy Stage Properties

  • Okay, unfortunately our SharePoint is not really only based on SharePoint standard, which means a Consultant have written javascripts and done a few things that i'm not really sure is actually correct, i'm worried that doing this might delete more than i actually want to delete. Is it safer to add some criteria to my original workflow? – Robert May 28 '18 at 7:45
  • That's hard to say without reviewing everything individually. If you aren't familiar with what his JS is doing, then I would probably add to the workflow for now and once you review the JS make the decision from there. – vanblart May 29 '18 at 12:12
  • 1
    Right, okay. Thanks for your informative answers and hopefully it'll work. – Robert May 30 '18 at 14:12
0

Here is a SPD 2010 workflow example would also work in SDP 2013.

enter image description here

  • Thanks, i'll try it out... not really sure how to create a variable, but hey, how hard can it be? :D – Robert May 23 '18 at 14:36
  • When you add the "Add time to" action, a new variable is created as the default output. You can change this to a different output variable, or leave it set to the default. – vanblart May 23 '18 at 14:40
  • Will the workflow work for items already created? – Robert May 23 '18 at 14:51
  • I have another workflow for the same list, that sends out emails to a certain email adress, should i add this as a parallel block or as a separate workflow? – Robert May 23 '18 at 14:57
  • 1
    You would want this to be the last step in your workflow (if your current workflow is 2013, it would be the last Stage). This will only affect new workflows unless you run the workflow again on old items. – vanblart May 23 '18 at 15:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.