cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
geneZebra
Level 8

examples of how to enter a filter query for excel list row in a table

I am not able to find any info on how to enter an odata expression or what that is. I am looking to create a flow to send out a reminder email when the TravelDate in a record is within a certain number of days of today. Attached is a pic of the List rows present in a table action in the excel connector but I can't seem to figure out how to check for "TravelDate" being within a certain number of days from today. My issue is more of understanding the syntax of how to enter this. I cannot find a reference doc that simply explains how expressions showld be entered. 

 

Any advice appreciate.ListRowsflowQuery.png

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: examples of how to enter a filter query for excel list row in a table

Hi @geneZebra ,

 

You could refer to the link below for more information on the use of Filter Query.

https://veenstra.me.uk/2018/11/12/microsoft-flow-filter-queries-in-sharepoint-get-items/

If the type of TravelDate is text and the time format is "yyyy-MM-dd", you could refer to the following method to configure Filter Query.

"-5" means a certain number of days, please check the following image and see if it helps:

40.PNG

 

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.
3 REPLIES 3
Community Support Team
Community Support Team

Re: examples of how to enter a filter query for excel list row in a table

Hi @geneZebra ,

 

You could refer to the link below for more information on the use of Filter Query.

https://veenstra.me.uk/2018/11/12/microsoft-flow-filter-queries-in-sharepoint-get-items/

If the type of TravelDate is text and the time format is "yyyy-MM-dd", you could refer to the following method to configure Filter Query.

"-5" means a certain number of days, please check the following image and see if it helps:

40.PNG

 

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.
geneZebra
Level 8

Re: examples of how to enter a filter query for excel list row in a table

Thanks Barry I will give this a try. I think it is what I need. My step is to send out an email based on each record in the table but I think I can figure that out. One of my challengs is that I want to CC people in a CC list but that list is a cell of text containing  "display name, email" spearated by a semicolon (e.g. "FirstName1, LastName1, email1@xx.com;FirstName2, LastName2, email2@xx.com;" and so on. I guess I would need to used to use a split call (documented in Powerapps) a couple of times to get the email address. 

Any advice on how to figure out that syntax would help. 

If preferred, I can close out this topic and create it as a new but I'd figured I'd ask while I got someone's attention.

 

Thanks,

 

 

geneZebra
Level 8

Re: examples of how to enter a filter query for excel list row in a table

After some playing around, and reviewing the article reference by @v-bacao-msft in this thread,  I was able to get a simple filter going. Unfortunately, I need to filter by TravelDate < (targetDate - X days). The Excel connector doc is clear that only a few operations are allowed so I am most likely going to use a conditional statement action followed by filter array in my actual flow.

Below is an example of how I was testing with  filter array and a listRows module filter. In practice, I will need to elminate the listRows advanced fitler due to the comparison limitation. I just could not find a way to compare the date to a value that can be compared via a < or > so I am stuck with the filterarray module.

 

Also note, the advanced listRows filter runs in a fraction of the time of the conditional block. I wanted to share this example in case it helps.

 

Also another lesson I learned is had to use the hover over txt of known expressions to figure out how to reference values that are not appearing in dynamic content. I don't have this all figured out yet but not knowing to use the item() function is what was blocking me for several days on how to properly reference a value. this is different than the ODATA syntax used by the advanced List Rows module but at least I worked through. I just wish flows was easier to work on getting started on manual entry. The dynamic expresson box does not alway show what can be accessed.

 

Anyway how this helps 

 

FlowtoFilterArray.png

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 46 members 4,675 guests
Please welcome our newest community members: