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 Apps / Power Automate OData f...
Power Apps
Unanswered

Power Automate OData filter expression for Yes/No Column

(2) ShareShare
ReportReport
Posted on by 73

I have a yes/no column named AlertActive and I want my "Get Items" action to filter only those records where the AlertActive column is equal to "True." With SharePoint, we would just use:
AlertActive eq '1' but Dataverse doesn't like that. I have found the Schema name for the column, and I have tried the following:
eq true

eq True

eq '1'

eq '0'

but I get an error that states:
A binary operator with incompatible types was detected. Found operand types 'Edm.Boolean' and 'Edm.Int32' for operator kind 'Equal'.

 

 

 

I have the same question (1)
  • Guido Preite Profile Picture
    1,488 Super User 2024 Season 1 on at

    eq 0
    eq 1

    these are also valid

    eq false

    eq true

    I know you write that "eq true" did not work but maybe the field is not a Yes/No and is a Choice instead? if is a Choice the numeric values (without the quotes as I wrote) work

     

  • ivan_apps Profile Picture
    2,187 Moderator on at

    When writing filter expressions in power automate I like to use @GuidoPreite â€˜s Dataverse Rest Builder. You can install it on your environment and then use it to get the Power Automate expression exactly formatted to work. 
    Like stated by Guido - eq 1 without the single quotes should do the trick. DRB will let you know immediately if otherwise.

  • Verified answer
    AllanDeCastro Profile Picture
    412 Most Valuable Professional on at

    Hello @BillyBreathes 

    In Dataverse, filtering Boolean fields in the "Get Items" action requires the correct syntax to be used. The Boolean field should be compared against the proper Boolean values, true or false. Unlike SharePoint, Dataverse expects these values to be without quotes and strictly in lowercase.

    Here's the correct way to filter the AlertActive column in Dataverse using OData syntax:

    1. Use eq true for records where AlertActive is True.
    2. Use eq false for records where AlertActive is False.

    Assuming the logical name of your AlertActive column is alertactive, the OData filter query should look like this:

     

    alertactive eq true

     

     

  • BillyBreathes Profile Picture
    73 on at

    I get the following error:

    A binary operator with incompatible types was detected. Found operand types 'Edm.Boolean' and 'Edm.Int32' for operator kind 'Equal'.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard