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

3 Answers 3

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

share

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

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

share

This site is currently not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .