Skip to content

Commit 22b2afd

Browse files
feat(Microsoft To Do Node): Add an option to set a reminder when updating a task (#6918)
Co-authored-by: Jonathan Bennetts <[email protected]>
1 parent 42a9891 commit 22b2afd

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

packages/nodes-base/nodes/Microsoft/ToDo/MicrosoftToDo.node.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,16 @@ export class MicrosoftToDo implements INodeType {
311311
};
312312
}
313313

314+
if (body.reminderDateTime) {
315+
body.reminderDateTime = {
316+
dateTime: moment.tz(body.reminderDateTime, timezone).format(),
317+
timeZone: timezone,
318+
};
319+
body.isReminderOn = true;
320+
} else {
321+
body.isReminderOn = false;
322+
}
323+
314324
responseData = await microsoftApiRequest.call(
315325
this,
316326
'PATCH',

packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,13 @@ export const taskFields: INodeProperties[] = [
266266
default: '',
267267
description: 'The date in the specified time zone that the task is to be finished',
268268
},
269+
{
270+
displayName: 'Reminder',
271+
name: 'reminderDateTime',
272+
type: 'dateTime',
273+
default: '',
274+
description: 'The date in the specified time zone that the task is to be reminded',
275+
},
269276
{
270277
displayName: 'Importance',
271278
name: 'importance',

0 commit comments

Comments
 (0)