automation of task creation should be done by using logic hooks
I did a few, an example of one is where a case is created. Upon creation the case needs 3 tasks with different users assigned.
in custom/modules/Cases i created a new logic_hook.php with the following contents:
Code:
<?php
$hook_array['before_save'][] =
Array(1,
'createTask',
'modules/Cases/create_case_task.php',
'case_create_task',
'createTask');
?> then in modules/Cases make a new file named case_create_task.php
and put the following in:
Code:
<?php
class case_create_task {
function createTask(&$bean, $event, $arguments)
{
}
}
?> Do whatever you need to do in the function createTask
If you need more info PM me
Bookmarks