You need to sign in to do that
Don't have an account?

How to make an apex class from the appex code
Hello!
I need to make a new apex class from the code below. My goal to execute this code on a monthly basis using "shedule apex" button.
my code is:
Could anyone help?
I need to make a new apex class from the code below. My goal to execute this code on a monthly basis using "shedule apex" button.
my code is:
list<PersonalGoals__c> AllRecords = new list<PersonalGoals__c>(); AllRecords = [select Id from PersonalGoals__c where Q_check__c = TRUE]; update AllRecords;
Could anyone help?
you can use like below code
afterward, you can go to Setup > Build > Develop > Apex Classes and then press on the 'Schedule Apex' to set up your class.
Thanks !
All Answers
you can use like below code
afterward, you can go to Setup > Build > Develop > Apex Classes and then press on the 'Schedule Apex' to set up your class.
Thanks !
try the following code kindly let me know if you need any help
Thank you
but an error was during Running Test: TestTriggerHanglerActivity.copyDataTest3
Could it be because of related objects?
The PersonalGoals__c is brand new and related only to cupple other objects
Thank you!
An error is because of class TestTriggerHanglerActivity and in method copyDataTest3.
Thanks !