Hi,
I am trying to build a flow for a task list that recreate the tasks based on a specific frequency. I have tasks that are weekly, monthly, and so on. Since the tasks don't change, my flow just takes the existing tasks and recreate them while setting the status field to outstanding and adding, for example, 7 days to the due date for a weekly task. In the images you can see that I am telling my flow to filter for only items that are created in the past 7 days to avoid recreating the same task more than once, since the same task gets recreated every week but just with a different due date. However, I can't seem to be able to find an addDays formula that works for this specific case and tried all the solutions given to similar cases online. I think this might be due to using the Get Items action which limits the dynamic fields available to insert in the addDays formula, but I don't know any work around. I would appreciate any help!
Thanks in advance,
Solved! Go to Solution.
Hi @Power_Aissam, one way to tackle this is to have a column in your list to check whether it is that item that gets renewed as a new task or not. I've called this column Renew with a default value of Yes.
Then in the condition we check whether the item in the list was created within the last 7 days: Created is greater than addDays(utcNow(),-7) and also add a row to the condition that Renew is equal to Yes
If Yes (the green channel) we:
This is all shown in the images below.
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.
Hi @Power_Aissam, one way to tackle this is to have a column in your list to check whether it is that item that gets renewed as a new task or not. I've called this column Renew with a default value of Yes.
Then in the condition we check whether the item in the list was created within the last 7 days: Created is greater than addDays(utcNow(),-7) and also add a row to the condition that Renew is equal to Yes
If Yes (the green channel) we:
This is all shown in the images below.
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.
Hi @RobElliott
I keep getting this error message with the addDays expression I think. My DueDateW format on the sharpoint list is Date & Time though..
You'll need to post an updated screenshot of your flowsowe can seewhat's happening.
Rob
Los Gallardos
Hi @RobElliott ,
I was able to figure out. I just deleted my column and recreated a new one and it worked.
Thanks,
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.