cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Add all items from gallery into collection

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper II
Helper II

Re: Add all items from gallery into collection

Figured it out using the following:

 

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

View solution in original post

1 REPLY 1
Highlighted
Helper II
Helper II

Re: Add all items from gallery into collection

Figured it out using the following:

 

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

View solution in original post

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,358)