Hi,
We have a requirement where if users enter the name of an employee, automatically that user's email, First name, Email, City and other details have to be populated in power apps
To achieve this, first establish a connection to Office 365 Users . Check below link for starting
https://www.c-sharpcorner.com/article/auto-populate-logged-in-user-name-in-powerapps-form/
Later use
1. Office365Users.SearchUser({searchTerm:"Yash",top:100})
and change the Display Fields and Search Fields in Advanced to Display Name
2. To read this value in Text box use the below
First(ComboBox2.SelectedItems).Mail
or
First(ComboBox2.SelectedItems).JobTitle
Bingo!Issue fixed!