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?
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
@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
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
85 | |
57 | |
42 | |
37 | |
33 |
User | Count |
---|---|
91 | |
73 | |
72 | |
60 | |
40 |