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 get data by loo...
Power Apps
Unanswered

How to get data by lookup for textlabel

(0) ShareShare
ReportReport
Posted on by 7

Hi,

 

I want to get Firstname in CarpoolUsers table by condition CarpoolUsers.Id = AccessControls.LoginUserId, for a text_label

feiyechen_0-1677346721984.png

 

Not sure why getting error, saying AccessControls.LoginUserId is table type, Id is text type

 

Thanks!

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @feiyechen 

    Please provide context for your question.  Is there a dropdown with AccessControls.  Are you referring to a label in a gallery?  Dataverse?  SharePoint?

  • feiyechen Profile Picture
    7 on at

    Hi, it's a text column in AccessControls table in Dataverse. The formula is in a text_label in canvas app

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @feiyechen 

    Ok flying blind here:

    • Assuming a dropdown with AccessControls as its items property
      • Label Text property: LookUp(CarpoolUsers, Id = Dropdown1.Selected.LoginUserId, FirstName) 
    • Assuming a gallery of AccessControls as its Items property with one of the records selected and a label in the gallery:
      • Lookup(CarpoolUsers, Id = ThisItem.LoginUserId, FirstName)

     

  • SoPatt Profile Picture
    Microsoft Employee on at

    I take it AccessControls is a DataSource (Collection) so LoginUserId is a column in that Collection. Hence AccessControls.LoginUserId resolves as a table with a single column. What are you trying to do in plain English? Example: "Get the app user's LoginUserId from the AccessControls table, then using that, look up the user's first name in the CarpoolUsers table." If it's something like that, what piece of information do you have that identifies the user's record in AccessControls table? You may need two (possibly nested) LookUps.

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard