@StuPower
Hmmm. I hadn't had a chance to fully test the formula until now. While it appears to work from my side, I did notice there were some levels of information missing. In the process of figuring that out, I change the formula. Give this one a try:
Clear(directs);
ForAll(
Office365Users.DirectReportsV2(User().Email).value,
Collect(
directs,
{
user: displayName,
email: mail,
DirectReport: true
}
);
ForAll(
Office365Users.DirectReportsV2(mail).value,
Collect(
directs,
{
user: displayName,
email: mail,
DirectReport: false
}
)
)
)
This will give you a collection called directs, that will have all the direct reports and their direct reports. It also includes a "DirectReport" column that will indicate the first level of direct report if needed.
See how that works for you. Now that I've had a chance to test it through, it seems to work pretty flawless for me.