Hi!
I have an Excel table with dates (column called "endDate"), and I want to know which dates are on the current week. For that I'm using the following OData filter query:
(endDate ge startOfWeek) and (endDate lt startOfNextWeek)
where startOfWeek is the following piece of dynamic content:
subtractFromTime(addDays(utcNow(), 1), dayOfWeek(utcNow()), "Day")
and startOfNextWeek is pretty similar, but adding 7 days to mark the start of the next week:
addDays(subtractFromTime(addDays(utcNow(), 1), dayOfWeek(utcNow()), "Day"), 7)
The problem I'm getting is with subtractFromTime. If I add the "Day" parameter, I will get the error "The expression is invalid". If I don't include that parameter, I won't get that error but the flow won't run because subtractFromTime is lacking a parameter.
Is it a problem with Power Automate? Is there a problem with my filter I'm not seeing?
Thanks in advance