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 / Add all items from gal...
Power Apps
Answered

Add all items from gallery into collection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have 2 galleries, SMEGallery and EmailPeopleGallery.

 

The SMEGallery pulls Office365 User data and the Items property for that gallery is:

 

ForAll(
 Split(SMEHidden.Text, ";"),
 First(Office365Users.SearchUser({searchTerm:Trim(Result)}))
 )

The EmailPeopleGallery pulls data from a collection, MyPeople. The collection code:

 

Collect(MyPeople, 
{DisplayName: ToText.Text, UserPrincipalName: ToText.Text, Mail: ToText.Text})

Is there a way to include all the items from my SMEGallery into the EmailPeopleGallery using the OnVisible property?

Categories:
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Figured it out using the following:

     

    ForAll(SMEGallery.AllItems, Collect(MyPeople, {DisplayName: DisplayName, UserPrincipalName: UserPrincipalName, Mail: Mail}))

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard