Solved

Document detention workflow

Posted on 2014-07-26
6
248 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
  • 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
A question that is asked often, is how to generate sequential numbers in InfoPath Forms. The best way to achieve this is to use a SQL database, along with a stored procedure and a web service to connect Forms Services to the DB. The first thing t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now