web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / At wits end: How to bu...
Power Automate
Unanswered

At wits end: How to build a List Rows filter of a Dataverse table

(0) ShareShare
ReportReport
Posted on by

Gooday/eve to you all:

At wits end because I've spent last two weeks struggling--watched every YouTube vid; Google/Bing/GPT search unfruitful. Help please?

Here's the problem:

The first filter **(cra31_adressecourriel ne null)** on its own works and retrieves 4000+ records from the table.

The other filters produce 0 records and should produce a few hundred records. 

ChrisChong_0-1688524098761.png

I created variables in this attempt:

ChrisChong_1-1688524678036.png

Can you suggest or point the way for this "citizen developer" please?

Thanks for help.

Chris

Categories:
I have the same question (0)
  • Linn Zaw Win Profile Picture
    2,996 on at

    What is the data type of the cra31_rgionadministrative column?

    Can you please show the filter from one of the flow runs (as in the screenshot below) to see the complete filter with the variables from the input parameter?

    LinnZawWin_0-1688567211247.png

     

     

     

     

  • ChrisChong Profile Picture
    on at

    In trying to trouble shoot the problem, I simplified the filter query as followed with the same results. Here is the filter:

    ChrisChong_0-1688591024674.png

    The 1st line on its own produces 4000+ records. Adding the 2nd line, erroneously produces 0 records; there should be at least 7 records.

    The column type of both fields is text.

    I hope this provides enough info to discover what I'm doing wrong.

  • Linn Zaw Win Profile Picture
    2,996 on at

    After simplifying the filter query, you might have updated the filter operator of the 2nd line. The operator in this screenshot becomes "eq" while it was "contains" in the original screenshot. (maybe that's why it returns 0 records instead of 7+ because there is no record with exact match for the lastname = "ch")

    Can you update that part back to

    contains(cra31_lastname, '«vLastN»')

     

     

  • ChrisChong Profile Picture
    on at

    Thank you. You are correct, that was my mistake.

    I meant to explain that when the "contains(cra31_lastname, '@{triggerBody()['Listrows_Filterrows_3']}')" is empty it returns 0 records rather than the 4000+ it should return. (By the way, the last name field is blank because these are essentially new records.) 

     

    Any idea how to handle this situation, when the contains(cra31_lastname, '<vLastName>') is empty or blank?

    Thank you again.

    Chris

  • ChrisChong Profile Picture
    on at

    Here is what I've tried unsuccessfully:

    ChrisChong_0-1688597799176.png

     

  • Linn Zaw Win Profile Picture
    2,996 on at

    That will be like this 

    cra31_adressecourriel ne null and (contains(cra31_lastname, '@{triggerBody()['Listrows_Filterrows_3']}') or cra31_lastname eq null)

    You can write filter conditions easily with FetchXmlBuilder tool.

    https://saralagerquist.com/2019/11/13/be-lazy-filter-list-records-in-power-automate-with-fetchxml-builder/

    https://blog.magnetismsolutions.com/blog/nickchin/2020/05/07/power-automate-flow--making-the-filter-query-easier

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 62 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 58

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard