Using the OOTB Direct Report function - collection: myDirectReports
I have a sharepoint list that has 1 to 5 items corresponding to each employee in the company. I'm only concerned with the latest record per employee (using built in SharePoint ID)
So I have a gallery - that should list all my direct reports along with information from the latest record from the SharePoint list corresponding to that direct report/person. Additionally - I'd like to be able to sort by a choice field from that SharePoint record.
Here's what I have so far
ClearCollect(myTeamStatus, SortByColumns(
AddColumns(
If(
Header_2.SubMenuClicked = "Direct Reports",
myDirectReports,
myTeam
),
"currentStatus",
SortByColumns(
Filter(
EmerCheckIn_CurrentStatus,
Title = Mail
),
"ID",
Descending
)
))
This produces a list of my direct reports with an additional column called 'currentStatus' - which ends up being a table (not ideal)
Now I think I can add 3 columns using the add column + filter option for each of my columns I want but my thought process was this would be a no - go because it would produce too many calls to SharePoint (ie: slow).