cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Muni1996
Helper I
Helper I

Check if a day before an element has been changed

Hey!

 

I want to create a flow which checks if a day before an element has been changed. 

Any ideas?

 

saskiaflow.png

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @Muni1996 ,

 

Please refer to screenhsot below to create the flow:

1.png

 

The first expression in the Condition as below:

formatdatetime(items('Apply_to_each')?['Modified'],'yyyy-MM-dd')

The second expression in the Condition as below:

formatdatetime(utcnow(),'yyyy-MM-dd')

Best regards,

Alice       

 

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

View solution in original post

2 REPLIES 2
rogrimbe
Helper I
Helper I

Hi Muni1996,

 

you can save the modified time value from share point into a variable and with the help of data and time expression 

use the foramtDateTime to save it in 'MM/dd/yyyy' format. 

onw use it in the condition with is equal to another expression using getPastTime with interval of 1 'Day' with the same format

that should work out for you.

v-alzhan-msft
Community Support
Community Support

Hi @Muni1996 ,

 

Please refer to screenhsot below to create the flow:

1.png

 

The first expression in the Condition as below:

formatdatetime(items('Apply_to_each')?['Modified'],'yyyy-MM-dd')

The second expression in the Condition as below:

formatdatetime(utcnow(),'yyyy-MM-dd')

Best regards,

Alice       

 

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

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 Kudoed Authors
Users online (1,965)