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

Showing Manager Info using Office365Users

I have successfully created a Gallery showing the user's profile information/picture, etc. (Office365Users.MyProfileV2())

Is it possible to create a second gallery that shows that user's manager with the same info? 

I got as far as creating a second gallery, and on the Items property I put Office365Users.ManagerV2() but I dont know how to direct it back to show the manager for the "MyProfile" user? 

 

What would the Items property be for my second gallery to show the Manager of the MyProfile user?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Showing Manager Info using Office365Users

@slan2018 

To show the manager put this code in the Items property of your Gallery3.

Office365Users.ManagerV2(Office365Users.MyProfileV2().mail)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

Re: Showing Manager Info using Office365Users

@slan2018 

Assuming you have this code in the Items property of Gallery1.

Office365Users.SearchUser({top:999})

 

Put this code in the OnSelect property of Gallery1.

Navigate(Screen2);ClearCollect(myManager,Office365Users.ManagerV2(Gallery1.Selected.Id));

 

Then put this code in the Items property of Gallery2 on Screen2.

myManager

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Helper II
Helper II

Re: Showing Manager Info using Office365Users

On my 1st Gallery (Gallery6), this is my Items property:

 

image.png

 

I don't think I'm necessarily looking to navigate to another page or anything. I just have a second gallery underneath on the same page (Gallery3). I am confused as to what the Items property should be for Gallery 3 to show the manager info for the user shown in Gallery6. 

 

Thanks for your help!

Highlighted
Super User
Super User

Re: Showing Manager Info using Office365Users

@slan2018 

To show the manager put this code in the Items property of your Gallery3.

Office365Users.ManagerV2(Office365Users.MyProfileV2().mail)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,428)