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 / Issue Adding Muliple E...
Power Apps
Answered

Issue Adding Muliple Entries to PowerApp Gallery and SharePoint List

(0) ShareShare
ReportReport
Posted on by 17

I have a Canva PowerApp which allows users to select a team from a dropdown, search for users then add them to a gallery. When the added to the gallery, it automatically adds to a SharePoint list as well to store this information. The issue I'm having is if multiple users are searched for, how do I add them the the gallery and SharePoint list. I have made two implementations, the first one can add multiple users to the gallery at once, but does nothing in SharePoint. The second one adds both to the gallery and SharePoint, but only adds one user (the most recent that was search for) even if the search feature allows multiple selections. Can someone please guide me to figure out where I went wrong please.

 

First Implementation:

 

ForAll(

    FindUser.SelectedItems,

    If(

        IsBlank(

            LookUp(

                'Team Members List',

                Team = SelectTeam.Selected.Value && User = Mail

            )

        ),

        Collect(

            selectedUsers,

            ThisRecord

        ),

        Patch(

            'Team Members List',

            Defaults('Team Members List'),

            {

                Team: SelectTeam.Selected.Value,

                User: Mail

            }

        )

    )

)

 

 

Second Implementation:

If(

    IsBlank(

        LookUp(

            'Team Members List',

            Team = SelectTeam.Selected.Value && User = FindUser.Selected.Mail

        )

    ),

    Collect(

        selectedUsers,

        FindUser.Selected

    );

 

    Patch(

        'Team Members List',

        Defaults('Team Members List'),

        {

            Team: SelectTeam.Selected.Value,

            User: FindUser.Selected.Mail

        }

    )

)

 

Categories:
I have the same question (0)
  • Verified answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @ninaaa 

     

    can u try this please:

    ForAll(
     FindUser.SelectedItems, // Loop over all selected items
     If(
     IsBlank(
     LookOut(
     'Team Members List',
     Team = SelectTeam.Selected.Value && User = Mail // Check each user
     )
     ),
     Collect(
     selectedUsers,
     {
     Team: SelectTeam.Selected.Value,
     User: Mail,
     DisplayName: DisplayName // Assuming you also want to store/display the name
     }
     ),
     Patch(
     'Team Members List',
     Defaults('Team Members List'),
     {
     Team: SelectTeam.Selected.Value,
     User: Mail
     }
     )
     )
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • ninaaa Profile Picture
    17 on at

    It successfully adds to the gallery on the powerapp, but it does not add to the sharepoint list. Also this method allows for duplicate entries, whereas with my second implementation if you added an entry, the same one could not be added again.

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
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard