cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
OT_87
New Member

Add Todoist task to Office 365 calendar

Hi!

 

I'm trying to make a flow where a Todoist task gets copied as a event to my Office 365 calendar. I'm getting an error message. Can someone help me out on how to fix this? Thanks in advance 🙂

 

Screenshot 2022-08-16 at 23.28.08.png

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @OT_87,

 

Can you try the expression below with a formatdatetime function to format it in the correct format for the creation of the event instead of using the Task Due Date field?

formatdatetime(triggerOutputs()?['body/due/date'], 'yyyy-MM-ddTHH:mm:ss')

 

formatdatetimefunction.png

View solution in original post

4 REPLIES 4
Expiscornovus
Super User
Super User

Hi @OT_87,

 

Can you try the expression below with a formatdatetime function to format it in the correct format for the creation of the event instead of using the Task Due Date field?

formatdatetime(triggerOutputs()?['body/due/date'], 'yyyy-MM-ddTHH:mm:ss')

 

formatdatetimefunction.png

Hi @Expiscornovus,

 

This works, thanks! One more question; can I set the duration of 'task' in Outlook calendar to 30 min?  

Expiscornovus
Super User
Super User

Hi @OT_87,

 

You could add 30 minutes to the due date and use that in the end time.

 

formatdatetime(addMinutes(triggerOutputs()?['body/due/date'],30), 'yyyy-MM-ddTHH:mm:ss')

 

Yeah, that did the trick. Thanks for your help @Expiscornovus!

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,980)