Creating a timer job in SharePoint 2007

For the project I’m working for the moment i needed a document library with contracts. The contracts have an end date and an email alert needed to be send when this end date was received. After exploring the possibility to used a work flow created in SharePoint Designer, i abounded the idea and set looked at creating a timer job. This timer job needed to run once a day, check the contracts end date and send alerts when needed.

Handy links where:

But the most useful link I found was by Alexander Brütt (blog by Tobias Hertkorn). On this page you can download a fully functioning Visual Studio Template to create a SharePoint timer job and to get a deployable .wsp file after building the project.There’s even a *.bat file to deploy the solution. Nice!

I’ve created this *.bat file to easily uninstall the feature and solution when testing:

stsadm -o deactivatefeature -name customTimerjob -url http://DEVMOSS/
stsadm -o uninstallfeature -name customTimerjob
stsadm -o retractsolution -name customTimerjob.wsp -immediate
stsadm -o execadmsvcjobs
stsadm -o deletesolution -name customTimerjob.wsp
pause

Advertisement

~ by Peter on 1 August, 2008.

2 Responses to “Creating a timer job in SharePoint 2007”

  1. Hi Peter,

    thanks for your kind words. I just wanted to point out that the post was by Alexander Brütt, who is a friend of mine and a frequent guest writer on my blog. And even though I would love to claim credit for his excellent posts, I’d rather like it if you gave him all the fame and credit. ;-)

    Cheers,
    Tobi

  2. Hi Tobias,
    I’ve updated the article, thanks for the important info!
    Cheers, Peter

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.