• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 134
  • Last Modified:

workflow steps

Hi,

what I am trying to do is ..I am trying to delete documents in a document library two weeks after they are created.

I can't use retention policy so I am using a SPDesigner workflow to automate this process. I have attached the workflow steps.

Can anyone help are these the right steps?
steps.png
0
Techsavy
Asked:
Techsavy
  • 7
  • 5
1 Solution
 
Matt CoughlinCommented:
Techsavy,
I think this would work, but I am wondering if maybe the pause should come after the twoweeksfromcreation variable is defined.
0
 
TechsavyAuthor Commented:
Or do you think we don't even need that variable. Just simply pause for duration and then delete item.
0
 
Matt CoughlinCommented:
Yep, that would be simpler.
0
What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

 
Matt CoughlinCommented:
But the variable acts as a double-check just in case something goes wrong. :-)
0
 
TechsavyAuthor Commented:
I have set up the workflow and what happens to the existing list items. Will the workflow has any effect on existing items? I see that they are automatically started. I thought workflow will only have effect on new items. but it looks like it starts automatically on existing items. Is this true?
0
 
Matt CoughlinCommented:
I guess it would depend on the parameters you specified on how the workflow is to be started.

When you first create a workflow, it asks you if you want it to run when new items are added or if anything changes on an item, or if you just want to run manually.
0
 
TechsavyAuthor Commented:
Well My workflow is set to start automatically only when new item is created. But when I publish the workflow, I think it starts on the items that already exist. Is this true?
0
 
Matt CoughlinCommented:
As far as I know, it shouldn't work like that. Which version of SP do you have?
0
 
TechsavyAuthor Commented:
I have sp 2010. I think it is initiating the workflow on all the items anytime someone adds a document. It should only initiate the workflow on the item that is created.
0
 
TechsavyAuthor Commented:
hi,

Do these steps cause any "infinite looping"? sometimes this logic is failing to start a workflow with a message "failing to start (retry).."
0
 
Matt CoughlinCommented:
As long as it is not set to start whenever an item is changed, there shouldn't be a loop.
0
 
Matt CoughlinCommented:
Were you ever able to determine what was going on with the workflows? Did the workflow start on every file like you thought it was?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now