cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
thelemontree10
Frequent Visitor

List rows present in table OData - AND not working

Hi,

 

I want to use ODATA to filter ID (for example) greater than or equal 1 and ID less than or equal 10.

 

(I don't want to used filter arrary because that will slow my flow, and and some cases, the list rows is too big to list, so I must narrow from the beginning)

 

I write the filter like this but the feedback say that I am wrong "Invalid filter clause: unsupported operation. Only single 'eq', 'ne', 'contains', 'startswith' or 'endswith' is currently supported."

 

thelemontree10_0-1626507668819.png

How can I fix this ?

 

Thank you,

1 ACCEPTED SOLUTION

Accepted Solutions
DamoBird365
Community Champion
Community Champion

Hi @thelemontree10 

 

It's possible that you might be able to create an excel office script and perform the between operation.  The following TypeScript would achieve a filter in Office Scripts and you could return the results via one action to your flow.

  table1.getColumnByName("ID").getFilter().applyCustomFilter(">=2""<=10"ExcelScript.FilterOperator.and);
 
I've done a couple of videos on Office Scripts here https://www.youtube.com/playlist?list=PLzq6d1ITy6c2_qM_ocYDtEaENrqi92YmM
 
You could try passing the two numbers as variables.  If you get stuck, I will try later on.
 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

View solution in original post

3 REPLIES 3
eric-cheng
Solution Sage
Solution Sage

Hi @thelemontree10 ,

 

I think the only option is filter array unfortunately.

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

DamoBird365
Community Champion
Community Champion

Hi @thelemontree10 

 

It's possible that you might be able to create an excel office script and perform the between operation.  The following TypeScript would achieve a filter in Office Scripts and you could return the results via one action to your flow.

  table1.getColumnByName("ID").getFilter().applyCustomFilter(">=2""<=10"ExcelScript.FilterOperator.and);
 
I've done a couple of videos on Office Scripts here https://www.youtube.com/playlist?list=PLzq6d1ITy6c2_qM_ocYDtEaENrqi92YmM
 
You could try passing the two numbers as variables.  If you get stuck, I will try later on.
 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

View solution in original post

Good pickup on Office scripts.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,680)