Help with an APEX trigger that creates events based on a custom datefield for every 30 days for a year
Posted on 2011-10-17
Im fairly new to apex in salesforce.com and would greatly appreciate some help writting a trigger that will take a custom date field in the contact object and create follow up calendar entries every 30 days for a year.
For example ....
We have a field in the contact object called intakeDate this may be different that the actual date the contact was created. I would like the trigger to add 30 days to the date check if an event was already added and if not create the event in the owners calendar. Then add 60 days and do the same thing and 90 , 120 , 180 etc... all the way to a year.
I dont really know where to begin on this so any help or direction would be appreciated.
Thanks a ton in advance for any guidence on this.