Greetings.
I have several collects that I use to build a directory, based off of Azure AD groups set up for branches within my organization, which run at app OnStart.
Collect(colBranch1,AzureAD.GetGroupMembers("GUID1").value);
Collect(colBranch2,AzureAD.GetGroupMembers("GUID2").value);
Collect(colBranch3,AzureAD.GetGroupMembers("GUID3").value);
Collect(colBranch4,AzureAD.GetGroupMembers("GUID4").value);
...
I have a Button1 on Screen1 that is set as follows:
//Combine collections
ClearCollect(divDirectory,colBranch1,colBranch2,colBranch3,colBranch4);
//Create new collection with Office365User.UserProfileV2 info
ClearCollect(divDirectory2,ForAll(divDirectory.id,Office365Users.UserProfileV2(ThisRecord.id)));
When I set Gallery3 datasource to divDirectory2, the only thing that is missing is the UserPhoto. Is there a way to pull in the user's photo into the collection? Currently have an image added to each datacard in the gallery that is set as follows:
Office365Users.UserPhotoV2(ThisItem.id)
It would be nice to have all of this information in one collection. To be clear, I would like to add the UserPhotoV2 for each user to the divDirectory2 collection.
I appreciate any help!