Solved

Document detention workflow

Posted on 2014-07-26
6
278 Views
Last Modified: 2014-08-03
Hi,

I have  a document library in SharePoint 2007. Periodically, we upload documents from a network share into a folder X in the document library. Now I need to set up a workflow where I need to delete these documents automatically 10 days after they are posted. I don't want to delete the parent folder that the documents are contained in. I only want to delete the documents.

Is there a way to set this up using "Pause Until Duration" workflow condition in SharePoint Designer?

Any help is greatly appreciated.

Thanks,
0
Comment
Question by:Techsavy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 40223557
I assume we are talking about deleting the files in the doc library and not the network share?
Have an automatic workflow (runs when a new item is added) that calculates the difference between today + 10 days.
Then pause the workflow until that date rolls around. Delete the file.
0
 
LVL 29

Expert Comment

by:QPR
ID: 40223560
This is SP 2010 but should be the same
http://office.microsoft.com/en-nz/sharepoint-designer-help/workflow-actions-in-sharepoint-designer-2010-a-quick-reference-guide-HA010376961.aspx

Look at the text for:
Add Time to Date
Pause until Date
Delete Item

If the person who triggers the workflow (the person who uploads the doc) does not have delete permissions then also look at inserting an impersonation step so that the action can be carried out under another security context
0
 

Author Comment

by:Techsavy
ID: 40225967
Hi QPR,

I am sorry it is my fault that I did not explain the problem correctly.

The workflow should automatically trigger on every newly created item so the folder or document library will not contain any documents that are more than 10 days old. so there is no human intervention. In that case do we need impersonation step?

Second, instead of setting this workflow on entire library is it possible to set up this workflow on all the items that belong to a particular folder or folders?

Thanks
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 29

Accepted Solution

by:
QPR earned 500 total points
ID: 40226009
No human intervention is required to trigger the workflow - you set the workflow to run when "a new item is added"
The workflow will auto-start, pause until the required date, auto-delete the item.
Impersonation is only required if the account that added the new doc does not have permission to delete items (probably will if using standard contribute permissions)

I don't think you can specify a workflow only run for items in a particular folder. You could add some logic to the workflow (and I'm guessing here) to check for the parent url maybe but I've never tried this.
0
 

Author Comment

by:Techsavy
ID: 40227294
I need help on this to determine if we can do this on a particular folder.
0
 
LVL 29

Expert Comment

by:QPR
ID: 40227755
I don't this is possible, you may have to use a separate library. Workflows are library specific
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question