Hi everyone,
I have a PowerApps form that is connected to a SharePoint Online list (please reference below):
The Default value for the Email Address field is:
First(Office365Users.SearchUser({searchTerm:Name.Text})).Mail
The Default values for Job Title and Department are similar, except the end of the string is replaced by .JobTitle and .Department.
This works great to return information for most users, but our organization has a group of users whose names follow a different naming standard, and their Display Names are ABCLastName, FirstName, and email addresses are FirstName.ABCLastName@Organization.com.
So when I use the above form to return user data, in order for the search to work, I'd have to enter in ABCLastName, FirstName.
What I'm trying to do is to be able to return user data by only entering the LastName, FirstName. I figure it should be possible to query our AD for the user Last name and First name fields. Does anyone know how best to go about achieving this? I've spent a bit of time trying to find out a solution, but have so far been unable to do so.
Thanks in advance, everyone!