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

Add days to date variable that will be used in "delay until" funcion in Flow

I need to create a flow that sends a reminder to a specific user 1 year after a SharePoint site page/item is created or modified. I extract a date variable from the "modified" column in SharePoint and plan to add 365 days to this date variable in the "delay until" function in flow. I wonder if its possible, and how would the arithmetic operations look when adding a days to a date variable in flow?

2 REPLIES 2
Super User II
Super User II

Hello @FlowNewbie 

You can't use the approach you mentioned because Power Automate can't execute a flow that runs for more than 30 days: https://docs.microsoft.com/en-us/power-automate/limits-and-config

You could create a weekly or monthly flow that executes and checks the modified date column you mentioned, and calculates the difference in days from today, with an expression like:

sub(ticks(utcNow()),ticks(items('Apply_to_each')?['Modified']))

Where we are using ticks function to get the number of ticks.

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!
New Member

@FlowNewbie You cannot build the flow and put the delay action with one year.

The best solution for this problem is to create one timer column in SharePoint which will count the month and do increment of 1 every month.

After 12 month you can make new power automate flow which will do some of your business logic.

Thanks  

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (23,206)