function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pravesh Mehta 3Pravesh Mehta 3 

Schedule Job every 10 min for managed package class

Can we schedule job every 10 min for a class which is in a managed package installed in our organisation. It gives error 'Type is not visible' when we run   -  System.schedule('Job Name', '0 0 * * * ?', new class());
Best Answer chosen by Pravesh Mehta 3
Pravesh Mehta 3Pravesh Mehta 3
I got the actual problem, basically when we set schedule job through developer console for managed package class then that class should have 'Global' as the access modifier. Then we can easily set the schedule job.

All Answers

Mudasir WaniMudasir Wani
Hi Pravesh,

You can schedule it daily but not after every ten minutes.

Thanks
Pravesh Mehta 3Pravesh Mehta 3
Is this the problem with Managed Package classes or simple class as well ?. Can you please describe some what more about it. It will be helpful.
Pravesh Mehta 3Pravesh Mehta 3
Thanks for reply.

But, I am facing problem when I go to schedule job througn Developer Console for class of a managed package. It gives error 'Type is not visible' 
Pravesh Mehta 3Pravesh Mehta 3
I got the actual problem, basically when we set schedule job through developer console for managed package class then that class should have 'Global' as the access modifier. Then we can easily set the schedule job.
This was selected as the best answer