Reputation: 8586
I have a Microsoft List that has a column called Expiration Date
(text in format of MM/DD/YYYY) and Point of Contact
(text in format of [email protected]). How do I create a flow that sends an email out to the Point of Contact 3 months in advance?
My idea was to create a scheduled cloud flow that:
Expiration Date
- 3 Months = TodayPoint of Contact
I am currently stuck on step 3 to compare the date. I did Subtract from time
to subtract 3 months from Expiration Date
but now I do not know how to use this value to compare to today's date.
Upvotes: 0
Views: 3701
Reputation: 187
A better approach is to filter the list by using an OData filter. That will result in a list with all the elements you need.
For doing so, you need to specify the "Filter Query" field (in red):
First type
ExpirationDate eq ''
Then, between the quotes, add an expression, and select the functions addDays and utcNow in the following way:
addDays(utcNow(),92,'MM/dd/yyyy')
Please notice the following:
Upvotes: 1