Its seems that all I am able to pull out of this is the displayname. Everytime I change from DisplayName or displayName to email I receive and error.
//////////Structural Teams Leads
//Get the VP of Mechanical Engineering
ClearCollect(
colVPStruct,
Filter(Office365Users.SearchUser({top: 999}),JobTitle = "VP Engineering" && Department = "Structural").DisplayName
);
//Find the Electrical team leads
ClearCollect(
colVPStructEmail,
Filter(Office365Users.DirectReportsV2(Substitute(Lower(First(colVPStruct).DisplayName)," ",".") & "@companyName.com").value, jobTitle = "Team Lead" || jobTitle = "Design Engineer")
);
//Populate Struct team drop down
ClearCollect(
colStructLeadNames,
colVPStructEmail.displayName
);

Report
All responses (
Answers (