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 / Create collection by c...
Power Apps
Answered

Create collection by combining all columns from one SharePoint list and a few from the second SharePoint list to be used as a source in a search screen

(0) ShareShare
ReportReport
Posted on by

I have two SharePoint lists: Staff List and Provider Directory. The Staff List has a lookup column to the Provider Directory. 

Staff List:
Name
Provider (linked to Name in Provider Directory)
License
Degree
Specialties

Provider Directory:
Name
Ages
Location
Insurance
Additional columns, but not needed in the combined collection

I would like to create a collection that includes all of the columns from the Staff List and a couple of columns from the Provider Directory list (by lookup of the Provider in the staff list), and then use this as a data source in a search screen. The user could then search by location, by insurance, by license, by degree, by specialties, etc., and find all the staff  (attached to a provider), that meet the selection. 

I was thinking a collection could do this, however if there are other ways to accomplish this, any help in pointing me in a direction would be most appreciated. 

Categories:
I have the same question (0)
  • Verified answer
    rzuber Profile Picture
    552 Moderator on at

    Something like:

     

     

    Collect(
     colStaffProviderLink,
     ForAll(
     Staff As _staff,
     With(
     { _provider: LookUp(Providers, Name = _staff.Provider) },
     Patch(
     _staff,
     {
     Column1: _provider.Column1,
     Column2: _provider.Column2,
     ColumnEtc: _provider.ColumnEtc
     }
     )
     )
     )
    )

     

     

  • AnnetteM Profile Picture
    on at

    That is perfect! Thank you!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard