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

Update opportunity stage on 1st of every month
HI all please help with how to create a batch job which converts all the opportunities that are open on the 2nd of every month.
Thanks in advance.
Thanks in advance.
Create a apex class using Schedulable interface.
Try this code.kindly modify according to your requirements.
Then schedule this apex class to run at required time
setup -->apex class--> click on schedule apex button-->select your schedulable class and also time to run .
If you have more records create a batch class an invoke batch from schedulable class execute method.
please refer below link whcih might help you in this
https://developer.salesforce.com/forums/?id=9062I000000IEIhQAO
https://www.appseconnect.com/apex-scheduler-in-salesforce/
Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.
Thanks and Regards
All Answers
Create a apex class using Schedulable interface.
Try this code.kindly modify according to your requirements.
Then schedule this apex class to run at required time
setup -->apex class--> click on schedule apex button-->select your schedulable class and also time to run .
If you have more records create a batch class an invoke batch from schedulable class execute method.
please refer below link whcih might help you in this
https://developer.salesforce.com/forums/?id=9062I000000IEIhQAO
https://www.appseconnect.com/apex-scheduler-in-salesforce/
Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.
Thanks and Regards