I have 2 sharepoint lists, i create a collection from each of them, and then create a 3rd collection where i combine 2 first collections.
First collection(colPeriod) contains an agents id, team, an period they worked
Second collection(colAgent) contains agents id, and name
(they contain more data, but its irrellavant here i think)
The reason for there being 2 lists/collections is that an agent can have multiple workperiods for different teams.
So what i try to do, is add the agents name from second collection and add it to the first collection and i put this into a third collection:
ClearCollect(
colCombined;
AddColumns(
colPeriod;
'AgentName';
LookUp(
colAgent;
AgentIdPeriod = AgentIdAgent;
AgentName
)
)
);;
ClearCollect(
colFiltered;
Filter(colCombined; TeamName = varSelectedTeam)
)
So when i check the contents of the last collection, colFiltered, then it still has all the data from the first collection,
but the column i added to colCombined from second collection is now empty.
So somehow the filter i used on colCombined seems to be affected by the data in first and second collection.