Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Handling parameters in the List rows's filter query , which can sometimes be empty

Like (1) ShareShare
ReportReport
Posted on 26 Jan 2025 07:54:00 by 84
Hi guys , I need some help with this , I’m working with the Dataverse  "List rows" action in Power Automate, where I use a Filter Query to filter data based on parameters coming from a Power Apps
The issue I’m facing is that these parameters can sometimes be empty, and I want to make sure this doesn’t cause any error
 
I have something like this , but no use 
 
username eq '@{triggerBody()?['text']}' and
(owner eq '@{triggerBody()?['text_1']}' or owner eq null ) and
(status eq @{outputs('List_rows_to_find_Status')?['body/value']?[0]?['attributevalue']} or status eq null )
 
Categories:
  • Verified answer
    Michael E. Gernaey Profile Picture
    41,474 Super User 2025 Season 1 on 09 Feb 2025 at 06:19:04
    Handling parameters in the List rows's filter query , which can sometimes be empty
    Hi
     
    So there are a couple of options and you may have this resolved already
     
    But I would use a coalesce function so like
     
    owner eq coalesce(inputvalue, inputvalue, null) or whatever you decide
     
    But the above will make it so that nulls won't cause it to fail (with an error), and it will either compare a value or a null but let me know if you have any other issues.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,722 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,069 Most Valuable Professional

Leaderboard
Loading started