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

Can I set up time intervals between events

I am building my auto pipeline with flow, say I have two adjacent events(one triggered by the other) my request is to enable the next event two days after the previous trigger, i.e. set up a 2d interval between these two events,  is this  feature supported in our current tools?

4 REPLIES 4
RobElliott
Super User
Super User

Hi @flowaways, yes this is quite possible. In my example the trigger is when the first event is added to a SharePoint list. In the list we have just a title for the event, the date and time the event will start and the duration minutes (image 0 below).

Image 1: The trigger is shown. We then need to get the duration and convert it to an integer using Compose controls.

Image 2: Then create the end time of the event with another Compose control by adding to the start date and time the minutes from the output at 1 above. Then create the event using the start date and the output from the end time.

Image 3: We now want to add 2 days to the first event to be used in the second event so we use another Compose control.

Image 4: To create the end time for the second event we again use a Compose control but can use the same output of the duration we had in image 1 and add it to to theComposeAdd2Days we had in image 3.

Image 5: Using the output of the ComposeAdd2Days and ComposeEnd2Days we create the second event.

Image 6: The flow runs successfully.

Image 7: You'll see that flow has added the 2 events, 2 days apart, with the same start time and duration.

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

0 - SharePoint list item0 - SharePoint list item1- Trigger and duration1- Trigger and duration2 - End time and create event2 - End time and create event3 - Compose 2 days ahead3 - Compose 2 days ahead4 - Compose end time4 - Compose end time5 - Create second event5 - Create second event6 - Flow result6 - Flow result7 - Calendar result7 - Calendar result

where can i find the addDays function in Compose action?

2 - End time and create event

3-Compose2Days.png

 

the options I got are selecting the parameters from the previous steps, here is how the window looks like:

Capture.JPG

Hi @flowaways,

 

You can create the function by clicking the "Input", then input the "adddays" into the Expression column.

If the float box on the left doesn't appear, you may need to display your interface on the full screen.

Annotation 2019-08-06 091613.png

Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @flowaways,

 

Has your problem solved?

If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (1,729)