1

HI I am trying to create a designer workflow if the item is older than 90 days it should be deleted. Am trying this logic I created a calculated column named "deleteitem"

  1. deleteitem = [Created]+90
  2. in workflow my logic is
  3. if current Item "Created" is greater than or equal to "deleteitem"

but it is not working as expected. Can some one tell if I am missing anything here. Thanks in advance.

2

If working with SharePoint workflows, you could:

  1. Set workflow to run on item create
  2. Have its first step as Pause for X Days (In this case 90)
  3. When it wakes up, delete the item.

Pause For Action

  • first step as pause is not showing in the workflow how to set it up ? – SPLearner Nov 16 '15 at 15:56
  • @user2314241 The action is "Pause For", which version of SharePoint and SharePoint Designer are you using? – Jacob Nov 16 '15 at 15:58
  • Am using SharePoint designer 2010 – SPLearner Nov 16 '15 at 16:00
  • See the image in my answer for the action. This is part of SharePoint 2010 workflows. – Jacob Nov 16 '15 at 16:01
  • 1
    With Pause until it doesn't matter when the last time the workflow ran... Example – James Flattery Nov 18 '15 at 14:01
8

There is alternative approach you can take that doesn't involve a workflow, use Information management policy.

  1. Go into your list/library settings
  2. Click Information management policy settings
  3. Click Document or Item
  4. Tick the Enable Retention box
  5. Create a new retention stage that is Created plus 90 days and tell it to move the item to the recycle bin
  6. Click OK 2 times and you are set, this will automatically delete the items (roughly) 90 days after they are created (based on timer job settings).
  • Hi Alexander what if i have items existing already which are older than 90 days will this apply for them as well. That is the reason I am looking for workflow. Thanks – SPLearner Nov 16 '15 at 15:54
  • 1
    They should expire/be removed once the timer jobs on the server are run. – Eric Alexander Nov 16 '15 at 15:56

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.