Skip to content

Commit

Permalink
Added reminderDate to update in MS To Do node
Browse files Browse the repository at this point in the history
  • Loading branch information
albertopasqualetto committed Aug 11, 2023
1 parent 808a928 commit 9eab7a5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/nodes-base/nodes/Microsoft/ToDo/MicrosoftToDo.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,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',
Expand Down
7 changes: 7 additions & 0 deletions packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9eab7a5

Please sign in to comment.