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 / A binary operator with...
Power Apps
Unanswered

A binary operator with incompatible types was detected.

(0) ShareShare
ReportReport
Posted on by 265

Hello guys,

 

I'm creating a form for my table in Dataverse and gotta need some Javascript for its event. I'm hitting error with my script which using function retrieveMultipleRecords. 

The error is ->

A binary operator with incompatible types was detected. Found operand types 'Microsoft.Dynamics.CRM.msauto_serviceorder' and 'Edm.String' for operator kind 'Equal'.

 

It is coming from a statement like this : 

var OrderId = Xrm.Page.getAttribute("jm_serviceorder").getValue()[0].id;

var Select = "?$select=jm_journalid";
var Filter = "&$filter=jm_ServiceOrder eq "+ OrderId ;
Xrm.WebApi.retrieveMultipleRecords('jm_expensedetail', Select + Filter ).then(.....

 

I actually don't have any knowledge about Javascript, so am not sure what is this function needed. All I can say is that the key that I'm using for the filter (jm_ServiceOrder)  is a lookup field to another table, and that I believe why the error message bring up another name Microsoft.Dynamics.CRM.msauto_serviceorder which is a table name that it is lookup with.

 

While googling, I found something like this-> https://coderscollection.wordpress.com/2019/02/22/error-a-binary-operator-with-incompatible-types-was-detected-found-operand-types-entity-and-edm-guid-for-operator-kind-equal/

mentioned we need to specify WEB API Property name for the filter. What is WEB API Property name ? and how can I get it ?

 

What is actually the error means and how to resolved this ?

 

Thanks.

 

I have the same question (0)
  • Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Hello @Voltes,

     

    Try using CRMRestBuilder, it will provide a feature to Easily generate ODATA CALL. I have provided the attachment. Please use the same.

     

    Navigate to Model Driven Apps --> Click on Advance settings --> Click on Cusotmization--> Solutions --> Import the attached solution.

     

    Once Import done. Refresh the screen then 

    rampprakash_0-1632983746078.png

     

     

    You can see the button at the top. Click on that, it will open another screen there you can do your queries.

     

    For Basics Javascript Click Here and Subscribe for more JS Videos: https://www.youtube.com/watch?v=x8kYNCkikgs&t=5s

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

     

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard