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!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,126)