+ Start a Discussion
BellaBella 

Dynamically Creating an Object

Just out of curiosity, is it possible to dynamical create an object at a certain time? For example, I need to create an opportunity based on information from a contract 90 days before the contracts expiration date. It has to be done automatically without imput from anyone on that 90 day mark. Can anyone suggest a way to get that done or throw any ideas out?
kwukwu

What you want is Apex Scheduler. It's like a CRON job. It runs at certain times each month, day, week, hour, etc. You'll want to create a scheduler that runs at midnight every day and do a check on your active contract records.

 

http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content/apex_scheduler.htm

 

Please take a look at this and let me know if it helps.

 

Kevin

BellaBella
It sounds like the right idea. Do you know of any good tutorials on how to use it? Any good examples? I've googled around, and it seems like this is a new feature with not much practice yet. Thanks for pointing me in the right direction though!