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

"List rows present in table" with startswith or contains filter - can't figure out syntax

When I use "eq" in the Filter Query, it returns one line like it should:

 

Number eq '29080'

 

But I'm having trouble figuring out what the respective syntax would be with contains or startsWith (either will do). I've tried this and it fails:

 

Number startswith '29080'

 

And if I try this it returns nothing:

 

startsWith(Number, '29080')

 

Anyone know what my syntax should be?

 

ts_ericjlitt_0-1602793305791.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

@ts_ericjlitt 

Hi there.  So, your syntax on the last one is correct, here is a handy reference:

 

Every Power Automate (MS Flow) Filter Query You Ever Wanted To Know As A Functional Consultant

 

I'm wondering if it's returning nothing with that one because of a type conversion or something.  Try making the number less specific: startsWith(Number, '2')

 

And if that still returns nothing, try it without the single quotes.  Those usually indicate a string, so if the field is numeric, it may not recognize that.

 

Keep us posted.

-Ed

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

View solution in original post

2 REPLIES 2

@ts_ericjlitt 

Hi there.  So, your syntax on the last one is correct, here is a handy reference:

 

Every Power Automate (MS Flow) Filter Query You Ever Wanted To Know As A Functional Consultant

 

I'm wondering if it's returning nothing with that one because of a type conversion or something.  Try making the number less specific: startsWith(Number, '2')

 

And if that still returns nothing, try it without the single quotes.  Those usually indicate a string, so if the field is numeric, it may not recognize that.

 

Keep us posted.

-Ed

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Hi @edgonzales , I think you are right it was a type conversion issue. I ended up nesting my eq, which only matched the ints (29080), with my startswith, which only matched the strings (29080A, 29080B). Between those two expressions I have the total number of matches. Seems like unintended behavior but at least I have a workaround.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,675)