Search code examples
mobilepowerappspowerapps-canvaspowerapps-formulapowerapps-modeldriven

Creation of an organization chart?


I'd like to know how to create an interactive flowchart like the one shown in the following images using PowerApps. I would like to be able to display for each person in charge, his team underneath and thus put the person in charge on which I clicked previously at the top of the block and have his team underneath.

I am trying to create this flowchart by going through the data in my SharePoint list.

Screen before clicking on manager (basic screen) :

enter image description here

Screen after clicking on manager 1 :

enter image description here

Hoping to make you understand

I'd like him to make me an organization chart to sort the employees according to their rank in the company and the teams they're in.


Solution

  • In Power Apps canvas apps, you could do that using a Container with Labels for the manager and a gallery of similar controls for subordinates.

    You said you wanted to map the organization using a SharePoint list, but you could also use the Office365Users connector for this purpose. When you click 'Manager1', you could run the 'Get direct reports (V2)' and display the results in the gallery. Also, you must save the object for 'Manager1' in a variable and set up the BOSS area so that it displays this variable.

    I suggest you also implement a button to enable users move across the organization upwards.