cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lgpower
Helper II
Helper II

Manager hierarchy data into powerapps canvas

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?   

0 REPLIES 0

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (3,885)