cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

In the database user mail Id is there how to find user full name using office 365

In the database user, mail Id is there how to find user full name using office 365

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Could you please share a bit more about your scenario?

Do you want to find the full name of the user using Office 365 connector based on the Mail Id?

Further, could you please share a bit more about your Mail Id in your database? Is it the email address of a specific user?

 

Based on the needs that you mentioned, I think the Office365Users.UserProfile() function or Office365Users.UserProfileV2() function could achieve your needs.

I have made a test on my side, please take a try with the following workaround:1.JPG

On your side, you could consider add a Gallery control within your app, then connect the Gallery to your data source. Set the Items property of the Gallery to following:

'YourDataSource'

Within the Gallery, add a Label control to display the Full Name, set the Text property to following:

Office365Users.UserProfile("Test1@xxxxxx.xxxxcrosoft.com").DisplayName

On your side, you should type:

Office365Users.UserProfile(MailIdColumn).DisplayName  /* <-- MailIdColumn represents the column in your data source, which used to store the Mail Id value */

Or

Office365Users.UserProfileV2(MailIdColumn).displayName

In addition, if the above formulas could only return the name of the specific Mail Id rather than the Full Name, in order to get the full name, please modify above formula as below:

Office365Users.UserProfileV2(MailIdColumn).displayName & " " & Office365Users.UserProfileV2(MailIdColumn).surname

Or

Office365Users.UserProfile(MailIdColumn).DisplayName & " " & Office365Users.UserProfile(MailIdColumn).Surname

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
yashag2255
Dual Super User II
Dual Super User II

Hi @Anonymous 

 

Please use the below expression:
Office365Users.UserProfile(User().Email).DisplayName
Here, I am printing out the full Name of current user using User().Email to pass current user's email address, you need to pass the email id returned from your database query as an argument.
 
If you will share a bit more detail about your database column, we will be able to help you better.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Could you please share a bit more about your scenario?

Do you want to find the full name of the user using Office 365 connector based on the Mail Id?

Further, could you please share a bit more about your Mail Id in your database? Is it the email address of a specific user?

 

Based on the needs that you mentioned, I think the Office365Users.UserProfile() function or Office365Users.UserProfileV2() function could achieve your needs.

I have made a test on my side, please take a try with the following workaround:1.JPG

On your side, you could consider add a Gallery control within your app, then connect the Gallery to your data source. Set the Items property of the Gallery to following:

'YourDataSource'

Within the Gallery, add a Label control to display the Full Name, set the Text property to following:

Office365Users.UserProfile("Test1@xxxxxx.xxxxcrosoft.com").DisplayName

On your side, you should type:

Office365Users.UserProfile(MailIdColumn).DisplayName  /* <-- MailIdColumn represents the column in your data source, which used to store the Mail Id value */

Or

Office365Users.UserProfileV2(MailIdColumn).displayName

In addition, if the above formulas could only return the name of the specific Mail Id rather than the Full Name, in order to get the full name, please modify above formula as below:

Office365Users.UserProfileV2(MailIdColumn).displayName & " " & Office365Users.UserProfileV2(MailIdColumn).surname

Or

Office365Users.UserProfile(MailIdColumn).DisplayName & " " & Office365Users.UserProfile(MailIdColumn).Surname

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (57,245)