feat(Microsoft To Do Node): Add an option to set a reminder when creating a task (#5757)

This commit is contained in:
Alberto Pasqualetto authored and GitHub committed 2023-06-28 08:55:40 +01:00
1 parent 2e8dfb86d4
commit b19833d673
2 files changed
+15

No files matched your search

@@ -221,6 +221,14 @@ export class MicrosoftToDo implements INodeType {
};
}
if (body.reminderDateTime) {
body.reminderDateTime = {
dateTime: moment.tz(body.reminderDateTime, timezone).format(),
timeZone: timezone,
};
body.isReminderOn = true;
}
responseData = await microsoftApiRequest.call(
this,
'POST',
@@ -105,6 +105,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',