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
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,171)