cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
UnitedLexAdmin
Level: Powered On

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
UnitedLexAdmin
Level: Powered On

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
UnitedLexAdmin
Level: Powered On

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,269)