mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
feat(Microsoft To Do Node): Add an option to set a reminder when updating a task (#6918)
Co-authored-by: Jonathan Bennetts <jonathan.bennetts@gmail.com>
This commit is contained in:
committed by
GitHub
parent
42a9891081
commit
22b2afdd23
@@ -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(
|
responseData = await microsoftApiRequest.call(
|
||||||
this,
|
this,
|
||||||
'PATCH',
|
'PATCH',
|
||||||
|
|||||||
@@ -266,6 +266,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',
|
||||||
|
|||||||
Reference in New Issue
Block a user