cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
slan2018
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

@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
mdevaney
Super User III
Super User III

@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."

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!

@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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

Top Solution Authors
Top Kudoed Authors
Users online (86,299)