0

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.

3 Answers 3

1

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

1

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)

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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