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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,383)