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

Compare dates - Sharepoint Calendar

Hello,

i'm new flow user and i' m tryng to create a flow that sand me email if the event (sharepoint calendar) start date  is greater than 15 day of current data. my condition is :

 

@equals(items('Apply_to_each')?(formatDateTime(['EventDate'],'YYYY-MM-dd'), formatDateTime(addDays(utcNow(), -15),'YYYY-MM-dd')))

 

i think is syntax problem but where is the mistake ?

 

thanks a lot for help

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
efialttes
Super User
Super User

Hi

I would try with the following 

 

@equals(formatDateTime(items('Apply_to_each')?['EventDate'],'YYYY-MM-dd'), formatDateTime(addDays(utcNow(), -15),'YYYY-MM-dd'))

 

Please note if you use equals it means the Event Date shall be exactly 15 days ago

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

1 REPLY 1
efialttes
Super User
Super User

Hi

I would try with the following 

 

@equals(formatDateTime(items('Apply_to_each')?['EventDate'],'YYYY-MM-dd'), formatDateTime(addDays(utcNow(), -15),'YYYY-MM-dd'))

 

Please note if you use equals it means the Event Date shall be exactly 15 days ago

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,327)