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 / Help pulling data from...
Power Apps
Answered

Help pulling data from Sharepoint Lookup Column

(0) ShareShare
ReportReport
Posted on by 196

Hello,

 

I have added a table which is returning a collection that looks at a Sharepoint List. In that sharepoint list I have some lookup columns bringing data from a second sharepoint list. One of those columns is payroll no, which is returning [object Object].

 

Current Code is 

 

ClearCollect(POrders,ShowColumns('Shopping Cart Order Items',"OrderID","Product","PointsQuantity","Total_x0020_Points","SalesQuantity","Total_x0020_Price","Employee_x0020_Lookup_x003a_Empl"))

 

So, I 've been trying to bring the value through with a lookup, not sure if this correct.

 

ClearCollect(POrders,ShowColumns('Shopping Cart Order Items',"OrderID","Product","PointsQuantity","Total_x0020_Points","SalesQuantity","Total_x0020_Price",AddColumns('Shopping Cart Order Items',"Payroll No",LookUp('Shopping Cart Order Items',"Employee_x0020_Lookup_x003a_Empl" =DataCardValue2.Text,'Payroll No'))

 

Any ideas the correct way to do this?

Thanks

Ross

Categories:
  • Verified answer
    Anchov Profile Picture
    1,986 on at

    If you just want to bring in the Payroll number as a text field, not as a record, you will need to add a column like this.

     

    ClearCollect(POrders,AddColumns('Shopping Cart Order Items',"PayRollNoValue", 'Payroll No'.Value))

     

    I removed your show columns formula for simplicity, but you can add those back if needed.  


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers!
    Rick Hurt

  • rosscortb Profile Picture
    196 on at

    @Anchov Thanks for your help

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard