• bedhes
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
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!

 

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!