
Hello Flownauts!
I am working on a flow to collect daily reports from our field crews and email a compiled list of responses from the previous day to management every morning. I created a Form from Excel Online so the responses are synced automatically. Here's the scenario:
I set up a recurring flow which runs every morning at 8am. Is there a way to only send the responses of the previous day? If not, how can I share share the compiled excel sheet daily?
Thank you in advance!
Hello @tezzeldin
If in your Excel file you've stored the submission response date, you could filter the items in Excel using an expression:
Where the expression would be:
@and(less(item()?['Request Date'], formatDateTime(utcNow(), 'yyyy-MM-dd')),greater(item()?['Request Date'], formatDateTime(addDays(utcNow()-1), 'yyyy-MM-dd'))
Which basically checks that the date (Request date column in this example) is greater than yesterday at 0h, and less than today at 0h.
After that, you would create the html table and send it by email.
Be careful when getting the rows of excel and using the ISO 8601 Date format!
Hope it helps!
Ferran