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 / Incompatible types for...
Power Apps
Answered

Incompatible types for comparison

(0) ShareShare
ReportReport
Posted on by 32

Guts_0-1684625380665.png

"GETROLE.Role" is a connector that returns either "WORKER" or "ADMIN" and I tested multiple times if I give it one of the IDs in my data base it returns the correct role but when I tried this code right which btw works fine for one of my colleagues I get this error .

Categories:
  • Ash13 Profile Picture
    576 on at

    Hi @Guts 

     

    What does the error message actually say?

    Does the input for the connector need to be a number? Try ID:Value(idinput.Text)

  • Guts Profile Picture
    32 on at

    It says Incompatible types for comparison these types can't be compared Record , text

  • Verified answer
    Ash13 Profile Picture
    576 on at

    If you put a dot after your connector code does anything come up in the IntelliSense?

    ie GETROLE.Role({ID:idinput.Text}).OUTPUTNAME = "Worker"

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard