Hello!
I have a flow that produces a 30 day reminder email based on a calculated column in a MS List. In that email it says "...this item will be past due in 30 days". I want to know if there is a way to pull the date from the renewal date column on the list (last day before the item needs to be renewed) and subtract the current day and put that in the email so it will be like a countdown timer.
For example if the renewal date is 07/31/22 and today's date is 07/14/22, the email should automatically say "...this item will be past due in 17 days" and keep going down until it reaches 07/31/22.
Thank you!
Solved! Go to Solution.
Hi @pure96,
Do you want to create a recurrence flow to remind everyday until the due date?
Could you please tell me more about your scneairo?
Here is a simple demo, please check as below.
formatDateTime(items('Apply_to_each')?['RenewalDate'],'yyyy-MM-dd')
formatDateTime(utcNow(),'yyyy-MM-dd')
div(sub(ticks(formatDateTime(items('Apply_to_each')?['RenewalDate'],'yyyy-MM-dd')),ticks(formatDateTime(utcNow(),'yyyy-MM-dd'))),864000000000)
You should make sure the the renewal date is greater than utcnow() and the date difference should be in 20 days, if it is, you should directly reference to the date difference from the div() function.
Hi @pure96,
Do you want to create a recurrence flow to remind everyday until the due date?
Could you please tell me more about your scneairo?
Here is a simple demo, please check as below.
formatDateTime(items('Apply_to_each')?['RenewalDate'],'yyyy-MM-dd')
formatDateTime(utcNow(),'yyyy-MM-dd')
div(sub(ticks(formatDateTime(items('Apply_to_each')?['RenewalDate'],'yyyy-MM-dd')),ticks(formatDateTime(utcNow(),'yyyy-MM-dd'))),864000000000)
You should make sure the the renewal date is greater than utcnow() and the date difference should be in 20 days, if it is, you should directly reference to the date difference from the div() function.
This worked! Thank you!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
77 | |
26 | |
20 | |
16 | |
16 |
User | Count |
---|---|
145 | |
44 | |
44 | |
33 | |
30 |