diff --git a/packages/nodes-base/nodes/Microsoft/ToDo/MicrosoftToDo.node.ts b/packages/nodes-base/nodes/Microsoft/ToDo/MicrosoftToDo.node.ts index 1b4eded7d..94bec41fe 100644 --- a/packages/nodes-base/nodes/Microsoft/ToDo/MicrosoftToDo.node.ts +++ b/packages/nodes-base/nodes/Microsoft/ToDo/MicrosoftToDo.node.ts @@ -311,6 +311,16 @@ export class MicrosoftToDo implements INodeType { }; } + if (body.reminderDateTime) { + body.reminderDateTime = { + dateTime: moment.tz(body.reminderDateTime, timezone).format(), + timeZone: timezone, + }; + body.isReminderOn = true; + } else { + body.isReminderOn = false; + } + responseData = await microsoftApiRequest.call( this, 'PATCH', diff --git a/packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts b/packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts index 9e7105a6e..f46177b56 100644 --- a/packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts +++ b/packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts @@ -266,6 +266,13 @@ export const taskFields: INodeProperties[] = [ default: '', description: 'The date in the specified time zone that the task is to be finished', }, + { + displayName: 'Reminder', + name: 'reminderDateTime', + type: 'dateTime', + default: '', + description: 'The date in the specified time zone that the task is to be reminded', + }, { displayName: 'Importance', name: 'importance',