+ Start a Discussion
beenerbeener 

Automatic Tasks

Hi All,

I need some help creating tasks automatically.

My scenario: on each of my contacts, i have many dates (about 5 dates, in different date fields). for each of these, if filled in, I must schedule a task. this task will be scheduled to 30 days before the date occurs.

How do I do this? any 'free' code I could use?

Here's a bigger problem. if one of these dates changes, I would need to go and find the task, and modify the date. I am considering one of several ways doing this:
  1. Keep a field for each date, this is the record ID of the task created, so that I can then change it's date if needed.
  2. Write an code that would find the task using SOQL, and change it's date. in this case it is hard to tell if the task the right one (since I have 5 such dates)
  3. Keep a field on the task record, with some string identifying it as relating to the date field in question.\

Any thoughts on this matter would be much appreciated.

Ben

RickyGRickyG
beener -

This scenario seems like a textbook example of timed workflows, which will even reevaluate the workflow task whenever a condition changes.  Have you looked into that option?

Hope this helps.
beenerbeener
I have not thought of this (I am not familiar with workflows as yet).

Thanks for the post.
sdagistansdagistan
Is there a way to automatically create multiple tasks when a new lead is entered, in the professional edition?