Hi,
I am trying to get hierarchy data into my canvas. The hierarchy model is set-up as:
'User Me' has manager 'User test'
'User Me' owns a lot of records. 'User test' should be able to ClearCollect() these records into powerapps canvas.
Depth 2
'Hour' table included in the hierarchy
Some other referential related custom tables excluded in the hierarchy
'User test' only has Security roles that give access to it's owned Hour records.
The ClearCollect statement is as follows:
ClearCollect(
ColHierarchy;
Filter(
Hours;
Employeenmbr in cbEmployees.SelectedItems.Employeenmbr && Week in cbWeeks.SelectedItems.Value && Status in cbStatus.SelectedItems.Value
)
)
For 'User test' I expect the return to be the records that match the filter and where either 'User test' is owner, or 'User me' is owner .
My results are very unpredictable. Sometimes a collection returns with some data, sometimes with all data, sometimes it is empty. These results appear random or at least I have not been able to reproduce the behaviour so far.
Am I missing something in the hierarchy security concept?
mmbr1606
22
Super User 2025 Season 1
stampcoin
17
ankit_singhal
11
Super User 2025 Season 1