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 / Extracting data from a...
Power Apps
Unanswered

Extracting data from a List to PowerApps with a button

(0) ShareShare
ReportReport
Posted on by

Hello,

I am in the learning phase, so excuse me.

 

I have a list created:  Let's call it 'Roster'.

My PowerApps has a text input called 'BadgeID'

A button is created called 'EmployeeID'

The column i'm trying to reference is called 'Badge' from the aforementioned list

This would then add columns 'Payroll Name: First Name' AND 'Payroll Name: Last Name' to the text input named 'EmpName'

 

I thought it would be similar to running vlookup in excel, maybe im wrong.

 

thanks,

Categories:
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @jkel9bna 

     

    You need a thirth collection that merge everything together. 

    Check my example below:

     

    SpongYe_0-1694536114998.png

    My collections are:

    ClearCollect(colRoster, {BadgeID:"123", Name:"ABC"},{BadgeID:"456", Name:"DEF"},{BadgeID:"789", Name:"GHI"});
    ClearCollect(colEmployee, {BadgeID:"123", EmployeeID:"987"},{BadgeID:"456", EmployeeID:"654"},{BadgeID:"789", EmployeeID:"321"})

    The button.Onselect is:

    ClearCollect(colMerged, 
     AddColumns(
     Filter(colRoster, BadgeID=TextInput1.Text),
     "EmployeeID",
     LookUp(colEmployee,BadgeID=BadgeID,EmployeeID)
     )
    )

     


    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

     

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard