Two things to fix in that formula.
First, LookUp returns a single record but DefaultSelectedItems on a combobox expects a table. Swap it for Filter:
```
Filter(
Office365Users.SearchUser({searchTerm: ThisItem.ERLead}),
Mail = ThisItem.ERLead
)
```
That works fine for a single email.
For multiple emails, it depends on how they're stored. If ERLead holds a comma-separated list like "a@company.com,b@company.com", you'd need to split and look up each one:
```
ForAll(
Split(ThisItem.ERLead, ","),
LookUp(
Office365Users.SearchUser({searchTerm: Trim(Value)}),
Mail = Trim(Value)
)
)
```
This loops through each email, searches for the user, and returns a table of person records for the combobox to pre-select.
One caveat: Office365Users.SearchUser is not delegable so it runs locally. If you have a large list of users this is fine, but keep that in mind. Also make sure the combobox SelectMultiple property is set to true if you want multiple selections.
Best regards,
Valantis
✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.
❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).
🏷️ For follow-ups @Valantis.
📝 https://valantisond365.com/