@Kashif1 - to display selected names on a label/text control from a combo box use below code:
Note: Update ComboBox1 to atacardvalue of your combo box.
Concat(
ComboBox1.SelectedItems,
ThisRecord.Value & ";"
)
And here is the code to find corresponding emails from O365 User Profile for selected names:
Concat(ForAll(
ComboBox1.SelectedItems,
First(
Office365Users.SearchUser(
{
searchTerm: ThisRecord.Value,
top: 1
}
)
)
).UserPrincipalName, UserPrincipalName & ",")
Note, I am using UserPrincipalName instead of Mail property to get the email since Mail is a keyword to avoid unseen issues.
Let me know how it goes.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.