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 / Populating a collectio...
Power Apps
Answered

Populating a collection from a SharePoint list

(0) ShareShare
ReportReport
Posted on by 271

Preface: I'm very new to Power Apps.

 

I've successfully built an app that can create a collection of items and add them to a SharePoint list. Now though I'd like to have a distinct collection that is populated by a SharePoint list "on load", and I have no idea how to do that. My SP list has two columns: Person, and Supervisor. Let's say there are 20 people (aka employees), and 5 supervisors. So on average, one supervisor is associated with five people.

 

In my app, I want a screen that automatically loads a list of "my" employees (assuming "I" - the person opening the app) am a supervisor). The app is already connected to our MS "global" list of people, and it knows how I am when I open the app. The load function needs to scan the SP list, find those employees that are assigned to me, and then add them to a collection so they can be displayed in a gallery. My intent at that point is to add a text (specifically a number) input field for each person. The purpose of the app is to enter a number for each employee, and then with a Collect function send those names and the number to a separate SP List (or Excel) sheet. I know how to populate a gallery with the data from the SP list of people (employees)... but I have no idea how to populate a collection, and one that is specifically filtered based on the "supervisor" column. Any hints or tips would be greatly appreciated.

Categories:
  • Verified answer
    AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @MarcusD1 

     

    To filter the list of employees assigned to you, try this formula in the OnVisible property of your screen. Then in the Items property of your gallery, enter in your collection name.

    ClearCollect('Collection Name', Filter('SharePoint List', Supervisor.Name = User().FullName))
    

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

     

  • MarcusD1 Profile Picture
    271 on at

    Set that up, but getting this error message:

     

    MarcusD1_0-1706638730985.png

     

    Columns in my reference SP List include (column type are in parens - not part of the column name)

     

    Title (default) | Person (Lookup) | Series (Lookup Extension) | Supervisor (Lookup)

     

    The Title column simply mirrors the Person column. The reason I'm using a Lookup column for Person is because I need to capture the additional info for the Series column. But for the app, I just need the Text values for those columns. How do I adjust the formula?

     

    EDIT: Disregard the above. I figured it out. I needed to created a new collection.

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