Answered by:
Username() function

Question
-
Hello Experts,
I am having a doubt with using the username() function. Using it displays the username associated with my account. But what I need is the name of the user. How can I reterive the name instead of the username.
Any help is greatly appreciated.
Thanks
Answers
-
Hi vdha,
Do you want to get user display name in InfoPath form using username function?
If yes, you can follow the detailed steps in the post below:
Feel freely to reply if there is any update.
Best Regards,
Dean Wang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.- Proposed as answer by Wendy DZMicrosoft contingent staff, Moderator Monday, January 25, 2016 11:58 AM
- Marked as answer by Wendy DZMicrosoft contingent staff, Moderator Tuesday, January 26, 2016 12:07 PM
All replies
-
-
Hi vdha,
Correct me if I am wrong: If you need to load information on your current user in InfoPath form you will need to create Data Connection to ether userprofile services or userlist and then use username() function to pre populate fields such as Full Name/Display Name etc.
here is a link to blog post that describes the process in detailshope this helps
- Proposed as answer by croute1 Friday, January 8, 2016 9:35 PM
-
Hi
You should use User Profile web services to display name instead of username. Below link explains the steps for your question
https://brainstorage.wordpress.com/2013/09/09/getting-accountname-from-user-profile-service/
- Edited by ViviSP Friday, January 8, 2016 7:43 PM
-
Hi vdha,
Do you want to get user display name in InfoPath form using username function?
If yes, you can follow the detailed steps in the post below:
Feel freely to reply if there is any update.
Best Regards,
Dean Wang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.- Proposed as answer by Wendy DZMicrosoft contingent staff, Moderator Monday, January 25, 2016 11:58 AM
- Marked as answer by Wendy DZMicrosoft contingent staff, Moderator Tuesday, January 26, 2016 12:07 PM