hi
i am trying to create a form , can I know how to auto populate the user's direct manger and it's manager direct officer?
I trying using
Office365Users.ManagerV2(User().Email).mail - it not working
Needs the User
RO (reporting officer)
first name, last name, email, department and title all the field are single line in SP list.
then RO direct manager call it AO
first name, last name, email, department and title all the field are single line in SP list.
kindly help to advise on this thank you
error show

i try this error too - DataCardValue5 is the User name who log to the screen.
If(
ApplicantForm.Mode = FormMode.New,
{
FirstName(RO): IfError(Office365Users.DirectReportsV2(DataCardValue5.Selected.Email), blank(), Office365Users.DirectReportsV2(DataCardValue5.Selected.Email).displayName
Claims: "i:0#.f|membership|"& Lower(varRO.email)
},
Parent.Default
)
Manager RO same field for RO Manager (AO)
