cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dmistry Post Prodigy
Post Prodigy

How to create recurring tasks in SharePoint task list using recurrence trigger

Hi, 

 

I am using SharePoint OOTB task list in classic UI. I am aware that the recurring task is something not availabe in the ootb task list. I have a frequency choice column with choices: Annually, Monthly, Semi Annually and Quarterly. Also a flow that triggers when a task is marked as completed, when ran, it creates another task with metadata of the competed task and a new due date based o frequency value. Below is the screenshot.

 

Capture.PNG

Above is the flow for case when status is completed and frequency is Monthly.

Due Date formula: 

addDays(startOfMonth(addToTime(triggerBody()['DueDate'],1,'Month')),sub(dayOfMonth(triggerBody()['DueDate']),1),'yyyy-MM-dd')
 
Similarly I have three more flows setup for each remaining frequency value. The formula above for due date generates a new due date value based on frequency value and previous due date so since its monthly. It keeps the day value same but adds a month to the date.
 
However the above flow is not something that end client is agreeing functionality wise, they do not want recurring task to be added when a task is marked as completed. There will be a case when a task due on 3/2 is not yet marked as completed so new task for 4/2 won't be created until 3/2 is marked as completed so this is why above design is not suitable. So ideally they would like to see 4/2 task created even though 3/2 is not marked as completed.
 
I am running out of thoughts and options, I am looking to see if there is a way to create recurring tasks based on frequency value using the recurrence trigger available in flow and not by item created or modified trigger.
 
 
Can anyone shed some light on the recurring automation. 
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: How to create recurring tasks in SharePoint task list using recurrence trigger

HI @dmistry ,

 

Do you want to create recurrence tasks using trigger Recurrence?

Please just add the trigger Recurrence, then get items from the Tasks list.

Add a Switch cases for each frequency so that you won’t need to create several flows for each remaining frequency value.

Under each case, add corresponding function to create recurrence tasks.

The function used in the Due date field is (got monthly frequency):

addDays(startOfMonth(addToTime(items('Apply_to_each')?['DueDate'],1,'Month')),sub(dayOfMonth(items('Apply_to_each')?['DueDate']),1),'yyyy-MM-dd')

1.PNG

 

Best regards,

Mabel

 

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

View solution in original post

5 REPLIES 5
Community Support
Community Support

Re: How to create recurring tasks in SharePoint task list using recurrence trigger

HI @dmistry ,

 

Do you want to create recurrence tasks using trigger Recurrence?

Please just add the trigger Recurrence, then get items from the Tasks list.

Add a Switch cases for each frequency so that you won’t need to create several flows for each remaining frequency value.

Under each case, add corresponding function to create recurrence tasks.

The function used in the Due date field is (got monthly frequency):

addDays(startOfMonth(addToTime(items('Apply_to_each')?['DueDate'],1,'Month')),sub(dayOfMonth(items('Apply_to_each')?['DueDate']),1),'yyyy-MM-dd')

1.PNG

 

Best regards,

Mabel

 

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

View solution in original post

Kathomsen
Frequent Visitor

Re: How to create recurring tasks in SharePoint task list using recurrence trigger

This requirement comes up a lot. Thanks

Renato_LTA
Frequent Visitor

Re: How to create recurring tasks in SharePoint task list using recurrence trigger

Hello, I'm trying to achieve a similar result for a Sharepoint Task list but I'd like to duplicate the items based on the recurrence field.

E.G.

I need to insert a tast called Task 1 which has a MONTHLY recurrence. Upon saving, I'd like the flow to create 11 identical tasks along with the one just created, each of them shifted by a month.

Same goes for any other recurrence: 

Weekly - 53 times (more or less)

Daily - ~210 (working days)

Semesterly - 2 times

Yearly - 1 time

 

Is this doable with Microsoft Flow?

Thanks in advance,
Renato

dmistry Post Prodigy
Post Prodigy

Re: How to create recurring tasks in SharePoint task list using recurrence trigger

@Renato_LTA hey may be you can setup a checklist template (a separate list) in sharepoint and log all 11 tasks in there, then in your existing flow based on recurrence , you fetch the tasks from template, do apply all-add create item action in there. This way you can create all 11 tasks as long they all are part of the template.

Renato_LTA
Frequent Visitor

Re: How to create recurring tasks in SharePoint task list using recurrence trigger

@dmistry  thank you for the quick reply. I'm ok with creating a separate list with all my expected combinations, but I'm not sure to fully understand how I can trigger automatic item creation based on this list.

Can you deepen that?

Thanks in advance

R

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,400)