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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,131)