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 / Adding data from a loo...
Power Apps
Answered

Adding data from a lookup to a collection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I would like to do a lookup on each item in the item collection and add the result of the lookup to a column in the collection. I am still all new to this, but i am not sure how to go about it or if this is the best way.

 

this is as far as i have gotten without much luck.

Collect(Test1,Filter('List', Ref = Text(ThisItem.ID)));
ForAll(AddColumns(Test As ThisExportToPDF, "GLCodes", LookUp('List that contains requied data',Title = ThisExportToPDF.ExpenseType)))

 

Any help is appreciated.

 

Thank you

Categories:
  • Verified answer
    BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    HI @Anonymous ,

     

    You seem to be a very long way there:

     

    ClearCollect(
    	Test1,
    	AddColumns(
    		Filter(
    			Test,
    			Ref = Text(ThisItem.ID)
    		) As ThisExportToPDF, 
    		"GLCodes",
    		LookUp(
    			'List that contains requied data',
    			Title = ThisExportToPDF.ExpenseType
    		)
    	)
    )

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard