Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

3 Answers

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

share|improve this answer
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.