cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chrism90
Regular Visitor

Flow Triggered by Date Condition

Hi Everyone,

 

I am trying to build a flow that looks up a a customer date field in a SharePoint called Renewal Date. If the Renewal date matches the current date the flow should then send an email to the email address associated with that row. I have been trying to use utcnow to lookup the current date however I am struggling to use this function and have not been able to get it to work thus far. Is this something that is possible?

 

Kind regards,

 

Chris

2 REPLIES 2
v-yamao-msft
Community Support
Community Support

Hi chrism90,

 

Please try to add a Condition in your flow to check if the “Renewal Date” is equal to Current date.


I have created a flow to test this issue, hope it could be a reference for you.


In the Condition, I use formatDateTime function to format utcnow so that it has the same format with the date in my list.


Besides, you could use a Compose action to get the correct format of the Date column in your list if you don’t know.

 

This flow works fine on my side. You could adjust it according to your needs.

3.PNG

For more details about Workflow definition language, please check the doc at here:

https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

 

Best regards,
Mabel Mao

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Yamao,

 

I can see how you can compare a date in a list to today, but is there a way to say if expiration is 2 weeks away?  I need to figure out how to do a DATEADD()

 

In other words, if the item expires 2/28/2018, I should be geting an email starting tommorrow.

 

TIA,

Joe

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,435)