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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Handling parameters in...
Power Automate
Answered

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

(1) ShareShare
ReportReport
Posted on 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:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,493 Super User 2025 Season 2 on at
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard