You need to sign in to do that
Don't have an account?
bedhes
Apex Scheduler error: "Global type must be contained inside of a global class"
Hello,
I have a big problem with apex scheduler. I've always get this error message, when I try to execute the scheduler: "Global type must be contained inside of a global class"
Can anyone give me a hint on this? Below is part of my code:
global class updateData implements Schedulable { global void execute (SchedulableContext SC) { DataContact dContact = new DataContact(); dContact.UpdateContact(); } }
Thanks!
I guess instead of executing the batch you're trying to call some function of the batch
Use database.execute(dContact ,200) instead of dContact.UpdateContact()
Where is DataContact?
Hi all,
basically with the apex scheduler, I want to update my custom contact List with adding a new contact.
Here is my DataContact class:
And I set the scheduled Time through the UI by Schedule Apex button.
any comment guys?
Thanks for the input..
You may check all classes and methods if there is class or method decleared as Global in the public class.
Hello,
I'd rewrite the global class as follows:
- anup
Hi bedhes
Have you resolved this error?
Thanks
Priya