My scenario creates a task in Todoist when I add an event to a Google Calendar.
I want to set the due date and time in Todoist based on the start date of the Google Calendar event.
I’m using this formula
{{formatDate(1.start; "YYYY-MM-DDTHH:mm:ss.000000Z")}}
It gets the date, but not the time.
The format is takend from the documentation of Todoist’s API
{
"creator_id": "2671355",
"created_at": "2019-12-11T22:36:50.000000Z",
"assignee_id": "2671362",
"assigner_id": "2671355",
"comment_count": 10,
"is_completed": false,
"content": "Buy Milk",
"description": "",
"due": {
"date": "2016-09-01",
"is_recurring": false,
"datetime": "2016-09-01T12:00:00.000000Z",
"string": "tomorrow at 12",
"timezone": "Europe/Moscow"
},
"deadline": {
"date": "2016-09-04"
},
"duration": {
"amount": 15,
"unit": "minute"
},
"id": "2995104339",
"labels": ["Food", "Shopping"],
"order": 1,
"priority": 1,
"project_id": "2203306141",
"section_id": "7025",
"parent_id": "2995104589",
"url": "https://todoist.com/showTask?id=2995104339"
}
Why isn’t it working?