SetReminder
The SetReminder() function sets a reminder date for the current case. The reminder date is specified by a number of days and minutes from the moment of rule firing. If the reminder is already set, it will be overwritten.
SetReminder(days,minutes);SetReminder(reminderDate)Function arguments
Dział zatytułowany „Function arguments”- reminderDate – (DateTime) the reminder date (and time);
- days – (Decimal) the number of days from the current date;
- minutes – (Decimal) the number of minutes from the current date.
Return value
Dział zatytułowany „Return value”This function returns Boolean. Returns true if the reminder was set successfully, false otherwise.
Examples
Dział zatytułowany „Examples”Example 1
Dział zatytułowany „Example 1”This will set a reminder date to 2017-03-20.
SetDeadline(DateTime(2017,3,20));Example 2
Dział zatytułowany „Example 2”This will set a reminder date for the current case to 14 days and zero minutes from the current date.
SetDeadline(14,0);Example 3
Dział zatytułowany „Example 3”This will set a reminder date for the current case to 2 days and 30 minutes from current date.
SetDeadline(2,30);