We need to use the Not operator to only surface actual employee accounts whom have been assigned to a department Items: // We need to filter the DepartmentManager Direct Reports to only surface the direct reports for the given manager. Y: DepartmentManager.Y + DepartmentManager.Height
Insert a Blank Horizontal Gallery onto the canvas just below the DepartmentManager gallery. To fix this just add the appropriate formula once more. Responsive Design, if you manually move the control, the formula will be deleted and the X and Y will be set to a new hard coded coordinate. To fix this just select Run On Start in the App layer. NOTE: As you make changes to the app your controls may dissappear from time to time and you will see the Error icon, X in a red circle. Y: ManagerPhoto.Y + ManagerPhoto.Height + 10 (Place below the ManagerPhoto with 10 pixels of padding on top) X: ManagerPhoto.X + ManagerPhoto.Width / 2 X: ManagerPhoto.X + ManagerPhoto.Width + 20 (Place to the right of the ManagerPhoto with 20 pixels of padding) Office365Users.UserPhotoV2(ThisItem.UserPrincipalName) Office365Users.UserPhotoMetadata(ThisItem.UserPrincipalName).HasPhoto = true, If no image is available, display the Person Icon. Profile images can be uploaded through Delve. Image: // Determine if employee has uploaded an Image to their profile. Y: Parent.Height / 2 - ManagerPhoto.Height / 2 X: Parent.Width / 2 - ManagerPhoto.Width / 2
Image: (Rounded Photo centered horizontally and vertically within the gallery) Place in the DepartmentManager gallery an image control, three labels, a Rectangle icon, a Person icon, and a button. Items: Office365Users.UserProfile(TopLevelManager) Insert a Blank Vertical Gallery on the canvas, We reset the variable TopLevelManager to the selected manager and their direct reports. In the App OnStart property add the following: // OrgChart - Set to the Department Manager Turn off Scale to fit and Lock aspect ratio located under File->App settings->Screen size + orientation ->Advanced settings I have a client where displaying an Org Chart of all personnel is not allowed. You may wish to check with your company policies on displaying org charts. Use the shape data panel to list down additional employee information so you can refer to them at a glance.I am using my developer tenant in this post but this will work the same on any tenant.
Use the Plus Create feature to easily visualize reporting structures and establish employee relationships with ease.Add images to each shape to represent an employee to better showcase your organizational structure.