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

Setting Task Due date based on Event start date

Hi!

 

I'm really struggling here!

The flow I'm creating is triggered by an event (outlook 365).

I'm creating a set of tasks that are based on the event date.

 

For example:

Say I have an event that is due to start on 01/19/2021.

I need the start date of the generated task to be the event date.

The tasks that need to be completed will have due dates of 1 day or 1 week after the event date.

 

Nothing I'm doing seems to generate a successful flow. I'm still pretty new to power automate but I feel like I've tried everything.

 

I appreciate any help!

 

1 ACCEPTED SOLUTION

Accepted Solutions
fchopo
Super User II
Super User II

Hello @areddington 

You can work with some datetime functions and expressions, using the "compose" action for example.

1) Get the start the date: For example, if the event is going to start in 15 days you could use this expression to get that date:

addDays(utcNow(),15)

utcNow() is a function that gets the current time (UTC).

 

2) If you want to add some days or weeks to that date, you could use an expression like that:

addDays(outputs('Compose-EventDate'),7)

where outputs('compose-eventdate') is the output of the previous action. Have a look:outputDates.png

After that, you could use the ouputs of the different compose actions in Outlook or Planner to assign the tasks.

Hope it helps!

Ferran

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

1 REPLY 1
fchopo
Super User II
Super User II

Hello @areddington 

You can work with some datetime functions and expressions, using the "compose" action for example.

1) Get the start the date: For example, if the event is going to start in 15 days you could use this expression to get that date:

addDays(utcNow(),15)

utcNow() is a function that gets the current time (UTC).

 

2) If you want to add some days or weeks to that date, you could use an expression like that:

addDays(outputs('Compose-EventDate'),7)

where outputs('compose-eventdate') is the output of the previous action. Have a look:outputDates.png

After that, you could use the ouputs of the different compose actions in Outlook or Planner to assign the tasks.

Hope it helps!

Ferran

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,415)