Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Answered

Can i save the user display name of a person who is using my BOT

(0) ShareShare
ReportReport
Posted on by 392

Hi, I have developed a bot using PVA.

Jupyter123_0-1676607337639.png

Authentication mode for this bot is : Teams
I got USERID, USER-DISPLAYNAME variables

Jupyter123_1-1676607444320.png

In greeting, I have used bot.UserDisplayName and it is displaying the user name in chat whoever is using that...

I want to save the person name in sharepoint list whoever using my bot
how to do that?

 

  • Jupyter123 Profile Picture
    392 on at
    Re: Can i save the user display name of a person who is using my BOT

    Thanks @HenryJammes @Jameslew_MSFT , your answer helpful.

  • Jameslew_MSFT Profile Picture
    on at
    Re: Can i save the user display name of a person who is using my BOT

    Within a Power Automate Flow you can use a Create List Item node to add items to a sharepoint list; I would start there.  You may find others have posted similar questions here in the community forums as well in the past.

     

    Thanks!  --jim

  • Verified answer
    HenryJammes Profile Picture
    on at
    Re: Can i save the user display name of a person who is using my BOT

    Hi @Jupyter123,

     

    One way to achieve this would be to call a Power Automate cloud flow, for example as part of your Greeting topic.

    The flow would then add a record in your SharePoint list with the user details (and perhaps check if it already exists to avoid creating duplicates).

    You can learn how to create a cloud flow in PVA here: Call a flow as an action - Power Virtual Agents | Microsoft Learn

     

    Just a word of warning: calling a cloud flow as part of the greeting topic would make the session to be counted as a billed session, even if the user doesn't engage anymore in the conversation.

     

    Henry

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 76

#2
Pablo Roldan Profile Picture

Pablo Roldan 61

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard