<div dir="ltr"><div>Thank you all for the great input! </div><div><br></div><div>:-)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 9 Aug 2021 at 18:35, Sukhdev Mohan <<a href="mailto:s.mohan@myti.it">s.mohan@myti.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
<div name="messageBodySection">
<div dir="auto">I’ve done this.<br>
<br>
My solution was to Cron job a php script that creates tasks. This is an extract from my script & configuration:<br>
<br>
Cron: 0 2 * * 1 (Every Monday at 2 am) PHPBIN /path/to/vtiger/script.php<br>
<br>
The script could look like:<br></div>
<pre>global $current_user, $adb;
$user = new Users();
$current_user = $user->getActiveAdminUser();

$data = [
    'subject' => sprintf('Subject'),
    'assigned_user_id'=> "19x".$user,
    'date_start' => date('Y-m-01'),
    'time_start' => '09:00:00',
    'time_end' => '18:00:00',
    'due_date' => date('Y-m-t'),
    'parent_id'=> '11x'.$parentModule['id'],
    'taskstatus'=> 'Planned',
    'taskpriority' => 'High',
    'sendnotification' => 1,
    'activitytype' => 'Task',
    'reminder' => 1 // this will send email
];

try {
    vtws_create('Calendar', $data, $current_user);
} catch (WebServiceException $exception) {
    file_put_contents("logs/Tasks", $exception->getMessage().PHP_EOL, 8);
}</pre>
<div dir="auto"><br></div>
</div>
<div name="messageSignatureSection"><br>
<div><font color="#C6C6C6"><b><span>Sukhdev Mohan</span></b></font><span></span><br>
<font color="#999999"><b><span>Developer</span></b></font><br></div>
</div>
<div name="messageReplySection">On 9 Aug 2021, 10:49 +0200, socialboostdk <<a href="mailto:socialboostdk@gmail.com" target="_blank">socialboostdk@gmail.com</a>>, wrote:<br>
<blockquote type="cite" style="border-left:thin solid grey;margin:5px;padding-left:10px">
<div dir="ltr">Hi there,
<div><br></div>
<div>I'm supposed to make a workflow that will send an email each monday, with a list of assigned tasks to each Vtiger user.</div>
<div><br></div>
<div>Any ideas on how to achieve that?</div>
<div><br></div>
<div>:-) Thanks!</div>
<div><br></div>
<div>//Chris</div>
</div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote>
</div>
</div>

_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div></div>