I'm building a recurring flow to copy Excel rows to a different workbook every two weeks, then delete it. I've removed the delete for now because although the flow runs successfully, there is no data in the target Excel workbook. The filter is based on the column Order_Date. I'm testing with data from 12 days ago, just to pull the more recent old data from the test files. There should be 24 rows added to the target workbook.
I've tried the Filter Query in the List Rows action and Filter Array (separate and together) with no luck. If I run with the Filter Query only, there are a variety of errors. Any recommendations to actually get the data to the target are welcome!
Hi @AJ_08
Please watch my tutorial video regarding how to filter excel date columns.
https://www.youtube.com/watch?v=r1LhHU5lXkM
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogI watched your video and noticed the filter date is fixed. My filter date will always very, based on today's date. That's why I'm using getPastTime. I tried addDays with a negative integer with no luck, I just need help to identify why no data is in the target sheet, but it's showing as successful.
Hi @AJ_08
Yes that will give you the idea how to filter. So what you need to do is find your filter day based on today date in a compose action step. Then pass that in next action step. In my case I don't need to work out and hardcoded that value. That's all the difference is.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @AJ_08
Please follow the below steps.
Above the expression are as follows:
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogThanks again @abm! Watching the video again with this makes sense now. Power Automate is seeing the date in the correct format - finally. Still, no data is being added despite there being about 20 rows of content. I'm using Add a Row as the next action, instead of Update a row, as there's no data in the target sheet. While there are several inputs, there are no outputs with the Order Date of 2/25/2021
Compose getPastTime(13,'Day','MM/dd/yyyy')
Filter Array addDays('1899-12-30',int(item()?['Order_Date']),'MM/dd/yyyy') is equal to Outputs variable
(also tried 12-30-1899)
Any resources you recommend? Google and search haven't produced any leads to read or watch.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
68 | |
24 | |
18 | |
16 | |
13 |
User | Count |
---|---|
133 | |
43 | |
32 | |
32 | |
28 |