SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to manage properties for a custom job definition using central admin?

The code I have in a feature receiver sets the property like this:

myJobDefinition.Properties.Add("ConnectionString", "My connection string"); 

Now that the job definition is installed. I would like the administrator to be able to change this connection string property as required.

I checked Central Admin, but it seems I may have overlooked something.

share|improve this question
up vote 2 down vote accepted

I think you cannot configure Custom Timer Jobs from Central Admin. If you look at AC's blog posts and How To:

Various options to store configuration for custom timer job is explored. I would suggest to store it via SPPersistedObject object because that does not involve web.config etc. Also, you can attach your config to a SPFarm object which is more logical for a timer job.

Below is an example:

As far as allowing admins to configure it, you can deploy a custom application page in the _Admin folder and have a link to it specified (via CustomAction) somehere in Central Admin.

share|improve this answer
Agreed, SPPersisted objects is the way to go. It's worth noting, the SPWebApplication object is an SPPersisted object, and it has a Properties hashtable. I've always stored settings for my jobs in that, and put a configuration page into Central Admin – Andy Burns Dec 9 '10 at 10:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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