Bitrix24 Community

Support » Forum » karthick S
Select date in calendarSelect date in calendar

Pages: 1
Business process: How to repeat a task weekly or monthly
Hi ,

I created one business process with task. Next step I need is getting reminding date using functions. Can someone help me on this asap. I tried the below code snippet, but i am getting error like The reminding day is not specified.

if (CModule::IncludeModule("tasks"))
{
   $arFields = Array(
       "TASK_ID" => 341,
       "USER_ID" => 64,
[COLOR=#ffff00][B][COLOR=#000000][/COLOR][/B][/COLOR][COLOR=#ffff00][B][COLOR=#000000] "REMIND_DATE" => "2017-06-22",[/COLOR][/B][/COLOR]
[COLOR=#000000] "TYPE" => CTaskReminders::REMINDER_TYPE_DEADLINE,[/COLOR]
[COLOR=#000000] "TRANSPORT" => CTaskReminders::REMINDER_TRANSPORT[/COLOR]_EMAIL
   );
[COLOR=#f49bc1][/COLOR]
   $obTaskReminders = new CTaskReminders;
   $ID = $obTaskReminders->Add($arFields);
   $success = ($ID>0);

   if($success)
   {
       echo "Ok!";
}  
   else
   {
       if($e = $APPLICATION->GetException())
           echo "Error: ".$e->GetString();  
   }

}


Please someone help me to check.
Pages: 1
3,500,000+
organizations
are already using Bitrix24