For my custom entity record, I'm trying to fetch related Contact records linked through Connections entity.
CustomEntity <--> Connections <--> Contacts
Currently using ForAll to fetch data which works, but I want to use the 'In' operator to improve performance (PowerApps experimental feature, currently at version 3.20051.17).
Here's the code for the currently working approach:
//Fetch connections for my selectedRecord
ClearCollect(
ConnectionsForEng,
Filter(
Connections,
'Connected From' = selectedRecord && Status = 'Status (Connections)'.Active
)
);
//then fetch Contacts using ForAll:
ClearCollect(
ContactsForEng,
ForAll(
ConnectionsForEng,
AsType(
'Connected To',
[@Contacts]
)
)
);
Have been playing around with disambiguation operator and ShowColumns for hours now, but the field "_record2id_value" in Connections does not give me a straight up collection of GUIDs for this record2id column.