Hi @Donna_S ,
Could you please share a bit more about your scenario?
Do you want to populate your Edit form based on the direct report you selected within the Gallery?
Further, could you please share a bit more about the Employee that you mentioned within your Office365Users.DirectReports() formula? Is it a Person type column in your SP list data source?
I have made a test on my side, please take a try with the following workaround:
Set the Items propety of the Gallery (Gallery1) to following:
SortByColumns(
Office365Users.DirectReports(First(Employee).Id),
"DisplayName",
Ascending
)
The standard formula as below:
SortByColumns(
Office365Users.DirectReports("The User principal name or Email address of a specific Manager"),
"DisplayName",
Ascending
)
If you want to fill out a Edit form with values from above Gallery (Gallery1), please take a try with the following workaround:
Set the Text property of the Text Input box within the Data card in Edit form to following:
Gallery1.Selected.DisplayName
Gallery1.Selected.Department
Gallery1.Selected.Id
Gallery1.Selected.Mail
...
If you want to populate the Edit form with corresponding record from your SP list based on the selected direct report within above Gallery, please set the Item proeprty of the Edit form to following:
LookUp('YourSPList', EmployeeNameColumn = Gallery1.Selected.DisplayName)
If the EmployeeNameColumn is a Person type column in your SP list, please modify above formula as below:
LookUp('YourSPList', EmployeeNameColumn.DisplayName = Gallery1.Selected.DisplayName)
Best regards,