cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnjohn123
Post Prodigy
Post Prodigy

Office365Users.ManagerV2() is not retrieving the manager

I have 2 SharePoint People or Group fields which allow single selection. one field represents the User (DateCardValue6) and the other field represents the Manager. now inside the manager field i disabled the field + i added this formula inside the DefaultSelectedItems, as follow:-

 

manager.png

 

 

but when i run the form and i select a value inside the User field, nothing will be shown inside the manager.. any advice?

1 REPLY 1
StalinPonnusamy
Community Champion
Community Champion

Hi @johnjohn123

 

Set the DefaultSelectedItems property of Combobox to

{
    '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    Claims: "i:0#.f|membership|" & Office365Users.ManagerV2(DataCardValue6.Selected.Email).mail,
    Department: "",
    DisplayName: Office365Users.ManagerV2(DataCardValue6.Selected.Email).displayName,
    Email: Office365Users.ManagerV2(DataCardValue6.Selected.Email).mail,
    JobTitle: "",
    Picture: ""
}

 

StalinPonnusamy_0-1632112859374.png

 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,069)