I am new to SalesForce. My goal is to create a scheduled Apex function that runs once all 24hours that just copies Account.Field("field1").Value to Account.Field("field2").Value. Is there a good example code page or tutorial to do this?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.
Here's how it works:
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
This requirement for you is good exercise as a fresher.
Please follow the apex workbook
Chapter 14 and chapter 15 has an example on Schedulable job and batch and you may tweak to adjust to your requirement.