i am trying to filter an entity based a date field... but with no success, i am trying to get all records that haver the date of "yesterday"
where ReportDate is the date field!
really appreciate your help on this.
About Odata filter query, please take this documentation for a reference:
From the doc we know that when filter the datetime, we need to get the day, month and year of the date.
While you could also add a Condition in your flow to filter the date which is equal to yesterday.
To test this issue, I configured the flow likes below. It works as expected.
The function I use in the Condition is: @equals(items('Apply_to_each')?['date'], formatdatetime(adddays(utcnow(),-1),'yyyy-MM-dd'))
Please try it on your side. Hope this could be a reference for you.
thank you for your suggestion, which was partially successful, but the problem that my entity that i am trying to filter contains more than 2000 records and the flow times out most of the time with no success.
so i believe that the best way is to use the odata filter... but i still could not find the formula that i can use with success... and most of the time i get a syntax error.
i could extract the date of yesterday using the action (Get Past time) before trying to filter... but my probelm is what is the formula for this Odata filter?
appreciate your help.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Many congratulations to the Season 1 2021 Flownaut Crew!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
Check out the community blog page where you can find valuable learning material from community and product team members!