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 Pages / How to use the Filter ...
Power Pages
Suggested Answer

How to use the Filter Array action on a field that is sometimes null

(0) ShareShare
ReportReport
Posted on by
I'm using the HTTP action to pull records from a 3rd party provider.  I want to only bring in records where the 'OptionDate' field value is greater than '2024-01-01', however some of the records have a null value for 'OptionDate'.  As you can imagine, as soon as the GET encounters a record with a null value for 'OptionDate', the flow stops with a failure. 'The template language function 'greaterOrEquals' expects two parameter of matching types. The function was invoked with values of type 'Null' and 'String' that do not match.'.
 
Is there a way, using advanced mode in the Filter Array action, to say something like, 'if field not null, then check to see if greater than 2024-01-01'?
 
Thanks
Categories:
I have the same question (0)
  • Suggested answer
    SaiRT14 Profile Picture
    1,992 Super User 2025 Season 1 on at
    check if the OptionDate is not null, If it’s not null, then compare it to your date (2024-01-01).
    @and(
       not(equals(item()?['OptionDate'], null)),
       greaterOrEquals(item()?['OptionDate'], '2024-01-01')
    )

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
sannavajjala87 Profile Picture

sannavajjala87 42 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 31

#3
11manish Profile Picture

11manish 18

Last 30 days Overall leaderboard