cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnjohn123
Super User
Super User

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
Super User
Super User

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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (1,543)