You need to sign in to do that
Don't have an account?
sachin joshi
Apex Schedular
Hi,
Is it possible to create a new detail record everyday of master record using Apex Schedular, as I am new to Apex please suggest me how can i do that?
Is it possible to create a new detail record everyday of master record using Apex Schedular, as I am new to Apex please suggest me how can i do that?
You can use the follow the below steps. i'm giving you small code for inserting the Account record.
OR
Thanks,
Sivasankar
All Answers
Yes , you can create a batch which will run daily and then that will find all master object first and then that will create detail record for that master record...
Thanks
Yes you can create. Batch is not must to impliment in this scenario.. You could just extend the Apex class to Schedulable and override execute() with the logic to identify details record is there or not for the day...and do accordingly
Finally schedule that to run on business demand.
Thanks
Sid
You can use the follow the below steps. i'm giving you small code for inserting the Account record.
OR
Thanks,
Sivasankar