Hello.
I need to create a Collection with the employees that respond to a few managers.
I was already able to create a Collection with all the employees that respond to one manager, as the code bellow:
ClearCollect(
Collection,
Office365Users.DirectReports("manager1@company.com")
);
But I need to do it for more than 1 manager in a list of managers' emails, such as:
ClearCollect(EmailList, ["manager1@company.com", "manager2@company.com", "manager3@company.com"])
So I need to iterate in this EmailList and put all the information regarding the employees in a Collection. How can I do it, please?
I am trying to use ForAll, but I couldn't find the right way.
Thank you in advance...
BR