<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<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 class="matchFont"><font color="#C6C6C6"><b><span style="">Sukhdev Mohan</span></b></font><span style=""></span><br />
<font color="#999999"><b><span style="">Developer</span></b></font><br /></div>
</div>
<div name="messageReplySection">On 9 Aug 2021, 10:49 +0200, socialboostdk <socialboostdk@gmail.com>, wrote:<br />
<blockquote type="cite" style="border-left-color: grey; border-left-width: thin; border-left-style: solid; margin: 5px 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 />
http://www.vtiger.com/<br /></blockquote>
</div>
</body>
</html>