cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sam12
Helper II
Helper II

Export list items from a specific view on a SharePoint Online list to a CSV file

I have set up a Flow that runs every day and exports my items in a SharePoint Online list to a CSV file (see screenshot below). This works exactly as expected.

 

However, I now have a requirement where I only need to export the items that were Modified today rather than the whole list. I have therefore created a new view in my list to show all those that were Modified today, however I can't find a way to only export the items in this view each day? Any help would be much appreciated.

 

Flow Help.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @Sam12 ,

 

Please try to paste the following expression in Filter Query and see if it helps:

Modified ge '@{utcNow('yyyy-MM-ddT00:00:00Z')}' and Modified lt '@{addDays(utcNow(),1,'yyyy-MM-ddT00:00:00Z')}'

 

Best Regards, 

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
sudharsan1985
Solution Sage
Solution Sage

Hi @Sam12 

In your 'Get Items' action, click 'Show Advanced Option' and try to use the 'Filter Query' field to filter the modified date which is equal to today's date.

Modified eq 'yyyy-MM-dd'

You can also use the expression for the current date as 

formatDateTime(utcNow(),'yyyy-MM-dd')

 

 

 Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...

Thanks @sudharsan1985. However when I try to add the below into the Filter Query field I get the below error messages:

 

Modified eq 'yyyy-MM-dd'

Error 1.PNG

formatDateTime(utcNow(),'yyyy-MM-dd')

Error 2.PNG

 

Any idea?

Hi @Sam12 

Can you post some screenshots of the current flow.

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...
v-bacao-msft
Community Support
Community Support

 

Hi @Sam12 ,

 

Please try to paste the following expression in Filter Query and see if it helps:

Modified ge '@{utcNow('yyyy-MM-ddT00:00:00Z')}' and Modified lt '@{addDays(utcNow(),1,'yyyy-MM-ddT00:00:00Z')}'

 

Best Regards, 

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-bacao-msft - that works perfectly. 

Hi @v-bacao-msft - this is working perfectly thanks. I just have one additional requirement which I am unsure how to incorporate into the filter query below:

Capture.PNG

I need to update the logic for any list items to be exported into a CSV file as per the below:

"Modified" is equal to 'Today' OR "Archive Status" is equal to 'Active'

Is this possible?

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,235)