This would be something that would be a better fit for scheduled apex - this will allow you to execute some code according to a date/time schedule. You can schedule the job from the UI or from code, via the developer console. Take a look at the docs at:
In that you can write the logic of creation of delivery record.
Use above class, and schedule it from schedule apex button on apex classes.
This would be something that would be a better fit for
scheduled apex - this will allow you to execute some code according to a date/time schedule. You can schedule the job from the UI or from code, via the developer console.
Take a look at the docs at:
- http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm
There's a blog post at:- http://blog.deadlypenguin.com/blog/2012/05/26/scheduled-actions-in-salesforce-with-apex/
that includes an example of executing code on the first of every month.You should create a scheduled job. See
- http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm.
The code would look something like this (untested): You then schedule it by clicking "Schedule Apex" in the Setup->Develop->Apex ClassesHope this helps.
Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra
Write batch apex class to insert Delivery record in this class check the condition is date is 1st of every month.
schdule this bacth apex every day basic.
make sure the class will insert record if the date is 1st of every month.
Thanks
karthik
It will help my requirement
Can't we do with time dependent workflows.
Thanks
Guru