I'm fetching a table from an excel file on my onedrive for business.
I want to filter the table on a date field (Column1) containing dates formatted like 2019-10-15T07:30:14.224Z, only keeping the records with the date set today.
In the filter array I've set this formula
@equals(formatDateTime(item()?['Column1'],'yyyy/MM/dd'), utcnow('yyyy/MM/dd'))
But no output is generated.
When checking the result i get :
]
OUTPUT:
Body
I could use some help with this
Solved! Go to Solution.
This is a common problem when working with dates. The issue is that dates always include both a date and a time component. But you are trying to just check whether the dates are equal, not the times. To do that you need to filter out the date portion on boht sides of the equation. Use the same FormatDateTime() function around UTCNow() that you use for Column 1.
screenshots of flow and result
This is a common problem when working with dates. The issue is that dates always include both a date and a time component. But you are trying to just check whether the dates are equal, not the times. To do that you need to filter out the date portion on boht sides of the equation. Use the same FormatDateTime() function around UTCNow() that you use for Column 1.
Hi,
Unfortunately, when I use the formatdatetime function on the utcnow part, it returns an error.
You are missing a closing ')' parentheses on your formula. You close out the FormatDateTime, but not the @equals.
Thanks for your help, it is working now, however only if the excel table contains less than 256 rows.
I believe I've read about that somewhere in another thread.
Take a look at the section covering Pagination in the following article.
https://flow.microsoft.com/en-us/blog/four-connector-action-settings/
User | Count |
---|---|
89 | |
37 | |
26 | |
13 | |
13 |
User | Count |
---|---|
127 | |
54 | |
38 | |
24 | |
21 |