Dear Experts,
Is it possible to get only the user's first name of the function {x} bot.UserDisplayname ?
Gr. P
Turn on the authentication in Security, then the {x} bot.User.DisplayName & ID will be applicable. Hope this help.
Turn on the authentication in Security
Then, bot.UserDesplayName & ID will be applicable.
Hey there @PeKi72,
It's definitely possible to just use the first name! What you'll want to do is have an action that goes into a flow that captures the bot.userID, then add the "Get User profile" action using that ID value as it's user value. You can then return the "Given Name" value to your PVA bot at the end of the flow, and have the bot reference that returned value as the name from then on.
You can reference this thread as well, which includes some visual references: https://powerusers.microsoft.com/t5/General/bot-UserDisplayName/td-p/736847
Thank you for using Microsoft Power Platform Communities!
Bryn Baker
Support Engineer
Microsoft Power Platform
If this post helps, then please consider accepting it as the solution to help other members find it more quickly!