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

This commit is contained in:
Alberto Pasqualetto 2023-06-28 09:55:40 +02:00 committed by GitHub
parent 2e8dfb86d4
commit b19833d673
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View file

@ -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( responseData = await microsoftApiRequest.call(
this, this,
'POST', 'POST',

View file

@ -105,6 +105,13 @@ export const taskFields: INodeProperties[] = [
default: '', default: '',
description: 'The date in the specified time zone that the task is to be finished', 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', displayName: 'Importance',
name: 'importance', name: 'importance',