Skip to content

NextReminder

Gets or sets the date and time of the next reminder to send.

Type

DateTimeOffset

Declaration

1
 DateTimeOffset myWorkItem.NextReminder

Remarks

If no reminder is set in the task definition, this property gets a null value.

If set to null, the reminder is disabled.

If the WorkItem.State is not in Waiting, Created, or Join, attempting to set this property is prohibited and throws an access denied error.

Examples

Send the next reminder one business day later

1
$WorkItem.NextReminder = $Calendar.AddDays(DateTimeOffset.now, 1);

Disable reminders

1
$WorkItem.NextReminder = null;

See Also