web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create collection by c...
Power Apps
Unanswered

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
    545 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard