cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Dual Super User III
Dual Super User III

Re: Compare dates - Sharepoint Calendar

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
Highlighted
Dual Super User III
Dual Super User III

Re: Compare dates - Sharepoint Calendar

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (5,799)