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 Apps / How to test if records...
Power Apps
Unanswered

How to test if records are identical?

(0) ShareShare
ReportReport
Posted on by 6,949

How can you test if Record1 and Record2 are identical?  The following gives an error 'Invalid argument type'

 

If(Record1=Record2, "Identical", "Not identical")

 

For a practical example, this also gives the same error of 'Invalid argument type'

 

Gallery1.Selected = First('[dbo].[Transactions]')

 

Where Gallery1.Items = '[dbo].[Transactions]'

 

It seems that there is no comparison operator for records.

 

Please provide some guidance.

 

@AndyPennell may be interested in this.

 

PS Here is the work-around, but obviously not very satisfactory

 

Record1 in Table(Record2)
Categories:
I have the same question (0)
  • Brank Profile Picture
    149 on at

    I would do a compare of all fields in the record just like this:

     

    Gallery1.Selected.Field1 = Record.Field1 && Gallery2.Selected.Field2 = Record.Field2 && .... Gallery1.Selected.FieldN = Record.FieldN

     

    Regards,

  • Meneghino Profile Picture
    6,949 on at

    Thanks, but this is clearly unsatisfactory.

    The = operator should work with records at least, and maybe tables also.

  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Meneghino,

     

    I think the '=' should be OK to only work with "cell" values.

     

    For record matching, please consider submit this as an idea, to suggest the Product Team to add new functions (or operator) for it.

    Regards,

    Michael

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard