@Anonymous
The Office365Users connector has a function Office365Users.UserProfile which takes a user ID and returns their profile.
You can extract the email from the profile by referring to the Mail property.
First, you should modify the TextInput field to capture the UserID, and then use this UserID in the Office365Users.UserProfile function to fetch the profile of the User.
After getting the UserProfile, you can fetch the email ID of the user.
Here's an enhanced formula example to help you:
If(
IsBlank(DataCardValue14_2.Text),
"",
Office365Users.UserProfile(DataCardValue14_2.Text).Mail
)
In this formula, DataCardValue14_2.Text should contain the user ID.
The If function checks whether the user ID input is empty, and if it is, it returns an empty string. If the input is not empty, it calls Office365Users.UserProfile to get the profile for the user ID, and then retrieves the Mail property from the profile, which contains the user's email address.
Please replace DataCardValue14_2.Text with your TextInput field name where you are capturing UserID.
Make sure to test this with your app and see if it's what you're looking for @Anonymous