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 Automate / "Incompatible types fo...
Power Automate
Unanswered

"Incompatible types for comparison. These types can't be compared: Record, Text."

(0) ShareShare
ReportReport
Posted on by

i would like you to help me with this problem : 

Set(foundUserRecord, LookUp ( Users, Username = TextInput1.Text && Password = TextInput1.Text )); If(!IsBlank(foundUserRecord), If( foundUserRecord.Level = "Admin", Navigate(Dashboard), If( foundUserRecord.Level = "Industrial Sv", Navigate(Dashboard), If( foundUserRecord.Level = "Academic Sv", Navigate(Dashboard), Navigate('Student Details') ) ) ); Notify("Invalid username or password"))
 
in this code it says "Incompatible types for comparison. These types can't be compared: Record, Text."
 
i have a table name users and a column name level. the column is a choice. 
 
i want to do a login page that can make user insert their username and password. After login it will navigate to the certain page based on the level. can u help me its urgent. thankyou
WhatsApp Image 2024-02-15 at 01.19.01_9dfe167c.jpg
Categories:
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @rosee08 

    You can try to use this code:
    Set(foundUserRecord, LookUp ( Users, Username = TextInput1.Text && Password = TextInput1.Text )); If(!IsBlank(foundUserRecord), If( foundUserRecord.Level.Value = "Admin", Navigate(Dashboard), If( foundUserRecord.Level.Value = "Industrial Sv", Navigate(Dashboard), If( foundUserRecord.Level.Value = "Academic Sv", Navigate(Dashboard), Navigate('Student Details') ) ) ); Notify("Invalid username or password"))

     

    As the foundUserRecord.Level is a records , you need to use the record.fieldName to get the data in a record.

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

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 Automate

#1
11manish Profile Picture

11manish 273 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 172 Super User 2026 Season 2

Last 30 days Overall leaderboard