Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save albertopasqualetto/1c54c9c5c4abbf9fa0fdfff5ea933c75 to your computer and use it in GitHub Desktop.
Save albertopasqualetto/1c54c9c5c4abbf9fa0fdfff5ea933c75 to your computer and use it in GitHub Desktop.
n8n Clean MS To Do completed tasks Workflow
{
"name": "Clean MS To Do completed tasks",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "weeks",
"weeksInterval": 2,
"triggerAtDay": [
1
]
}
]
}
},
"id": "a45369f9-d9f9-429a-80c6-2d755e607e37",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
"position": [
940,
400
]
},
{
"parameters": {
"operation": "getAll",
"taskListId": "AQMkADAwATZiZmYAZC1kM2Y4LWExMQEtMDACLTAwCgAuAAADxeeKEHDPzUyDqR_uGHvsGAEAMb92IcD1v0mQrgs56Rc_ygAAAgESAAAA",
"returnAll": true
},
"id": "36875546-22d9-44ed-b4b1-491f17cb6210",
"name": "Microsoft To Do",
"type": "n8n-nodes-base.microsoftToDo",
"typeVersion": 1,
"position": [
1160,
400
],
"credentials": {
"microsoftToDoOAuth2Api": {
"id": "3",
"name": "Microsoft To Do account"
}
}
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $json.status }}",
"value2": "completed"
}
]
}
},
"id": "6c64bef0-ffbe-4886-8984-8096801fef57",
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1380,
400
]
},
{
"parameters": {
"operation": "delete",
"taskListId": "AQMkADAwATZiZmYAZC1kM2Y4LWExMQEtMDACLTAwCgAuAAADxeeKEHDPzUyDqR_uGHvsGAEAMb92IcD1v0mQrgs56Rc_ygAAAgESAAAA",
"taskId": "={{ $json.id }}"
},
"id": "83036103-5ff9-4e7b-83f8-9a646329f928",
"name": "Microsoft To Do1",
"type": "n8n-nodes-base.microsoftToDo",
"typeVersion": 1,
"position": [
1600,
400
],
"credentials": {
"microsoftToDoOAuth2Api": {
"id": "3",
"name": "Microsoft To Do account"
}
}
}
],
"pinData": {},
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "Microsoft To Do",
"type": "main",
"index": 0
}
]
]
},
"Microsoft To Do": {
"main": [
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "Microsoft To Do1",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"saveManualExecutions": true,
"callerPolicy": "workflowsFromSameOwner"
},
"versionId": "db0fec7b-18ec-419c-8904-c89798185546",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "afd7366da62d1095b6c121d8d0e307c83f533aff9f88ae1b32ceeb870082a204"
},
"id": "2",
"tags": [
{
"createdAt": "2024-10-10T22:46:06.991Z",
"updatedAt": "2024-10-10T22:46:06.991Z",
"id": "1",
"name": "Todo list"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment