I have created a Flow that generates a task. The Task due dates uses the addDays() expression. That is working as intended.
I also want to create a Reminder with both a predefined date and time value. The reminder should be one day before the due date at 9:30 am local time. The function below is working with the exception the time outputted in Outlook task is UTC time, five hours behind. How do I ensure that the time is shown as 9:30 am?
formatDateTime(addDays(utcNow(),2,'yyyy-MM-ddT09:30:00'))
Additionally, is there an expression that can be written for the reminder field on the task that subtracts one day form the due day field. The way the current expression is written is that I've just added one less day that what I put in the due date expression. It would be nice if the reminder field could auto calculate and subtract one day from what ever was in the due date expression.
Hi @buildingblocks,
Could you provide a screenshot of your current Flow configuration?
If you know the UTC time of your time zone, you could use addHours() function to add the corresponding hours difference based on the time you have formatted the time to 09:30. This will ensure that the Reminder Date time is on Outlook task displayed as 9:00 am, like:
addHours(formatDateTime(addDays(addDays(‘Start date’),3),-1),'yyyy-MM-ddT09:30:00Z'),6)
I don't know that you how to set the start date here, so I used Compose to set a date. The time zone is UTC-6, so it adds six hours.
Please take a try and free feel let me know if you have any question.
Best Regards,
Barry