I am new to sharepoint.

I am having a task list in which I want to send e-mails to the person whom the task is assigned before 24 hours of due date.

I am confused whether to use workflow or timer job? to perform this query.

Is other better way available rather than timer job or workflows?

2 Answers 2


Workflow can be triggered when an item is updated, created or deleted. In this case (before 24 hours of due date) you cannot use it. You should use timer job service. In sp2013 you can use a new kind of workflow that can be run as repeatable workflow.

  • In the case if I am using SP2013 will it be preferable to go through the workflow or use timer job?
    – users1100
    Commented Aug 21, 2013 at 12:13
  • @RiyazKalva, If you would like to use this functionality only on one site, I think, you can try to use workflow. But I don't know its restrictions. For many sites timer job will be preferable.
    – Alexander
    Commented Aug 22, 2013 at 7:32

A workflow can most definitely be used for this purpose. You can setup a workflow to start on item creation and update. For the workflow use the following:

Calculate Current Item:Due Date minus 86400 (Output to Variable: calc)
then Pause until Variable: calc
then Email these users

When entering in the Current Item:Due Date field, select it as Number of Seconds since 00:00:00 1/1/1900

This should create a date 24 hours (60 seconds * 60 minutes * 24 hours = 86400) and store it in a variable calc that the workflow will stop until. Once it hits that date, it should send out the email.

  • I don't know about sp2013, but in 2010 you have a big issue with suspend activity. Some times, the workflow can be started, some times not. There is an update package on the internet, but it works randomly.
    – Alexander
    Commented Aug 22, 2013 at 7:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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