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

I was just wondering if it's possible to call a timer job from a button click or some logic in a custom solution?

If so do, please provide an example.

share|improve this question

You can try to use Execute method of your job definition. See this post for more details.

share|improve this answer

Is it to test the Timer Job ?

In that case - write all your logic in a seperate class and take the input (according) to your TimerJob (SPFarm, SPWebApp etc)

share|improve this answer

I don't know much about this sort of thing but this link talks about starting a timer job from a button

share|improve this answer

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.