Hi
Im trying to add columns to a collection.
I have a ForAll that loops through a SharePoint list getting group ids, this in turn populates a UsersList collection from all the members of each group. I want to add 2 columns to the collection to say which Group & Establishment they are from.
I have:-
ForAll(Office365StaffGroups,
Collect(UsersList,Office365Groups.ListGroupMembers(ThisRecord.StaffGroupID).value)
// I guess I need to add this somewhere, AddColumns({GroupName:ThisRecord.StaffGroupName, GroupEstab:ThisRecord.StaffGroupEstab})
)
I have tried different combinations,
or do I have to do another forAll within to loop through the UsersList Collection adding the columns
Thanks