cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

difficulty comparing dates in odata filter

I am quite new to flow. I am creating a scheduled flow that updates a column if the targetdate is breached, then send a mail to the accountable person.

I intend to filter (sharepoint) rows that have the TARGETDATE less than today's date, and then update another column "Breached" to Yes else no. lastly, email the accountable persons

airnorr_2-1593121062838.png

 

The TARGETDATE was setup as string field, when the flow failed, I changed it again to DATE/TIME but it is still failing.

 

 

I need this urgently, please assist @yoshihirok 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: difficulty comparing dates in odata filter

 

Hi @airnorr ,

 

Please try to change the type of field to Date and time(not include time).

 

Then you need to get internal of this field. You could run the flow without configuring any filters in Get items. Then you could check the body of the Get items action to get the display name of the date field.

 

Then you could configure the Filter Query as follows:

133.PNG

 

Best Regards,

Community Support Team _ Barry
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

5 REPLIES 5
Highlighted
Post Prodigy
Post Prodigy

Re: difficulty comparing dates in odata filter

Highlighted
Community Support
Community Support

Re: difficulty comparing dates in odata filter

 

Hi @airnorr ,

 

Please try to change the type of field to Date and time(not include time).

 

Then you need to get internal of this field. You could run the flow without configuring any filters in Get items. Then you could check the body of the Get items action to get the display name of the date field.

 

Then you could configure the Filter Query as follows:

133.PNG

 

Best Regards,

Community Support Team _ Barry
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

Highlighted
Frequent Visitor

Re: difficulty comparing dates in odata filter

Hi @v-bacao-msft  ,

 

Yeah I did that and it solved it .. the first part of the question/problem on the condition..

but the second part of the apply all .. I could not get that.

 

I intend to send mail to each person of an Item when the condition is true. I hope you understand

 

I didnot hit the solution button yet coz , I felt it will archive this problem/question as fully answered.

 

Thanks a lot

Highlighted
Community Support
Community Support

Re: difficulty comparing dates in odata filter

 

 


@airnorr wrote:

 

but the second part of the apply all .. I could not get that.

 

I intend to send mail to each person of an Item when the condition is true. I hope you understand

 


Which mean?

 

 

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

Re: difficulty comparing dates in odata filter

@v-bacao-msft  meaning it is part solved..

 

But I will close this now.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

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