web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to get session ID ...
Copilot Studio
Answered

How to get session ID real-time and give it to user?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Dear:

Hi This is Allen from Azure WCF Team.

Wanna know could we get the session ID real-time(I mean during the process of chat, something like a global variable)

Because we wanna give this session ID to the user, when they have problem with our service they could also include that session Id so we could more efficiently locate the chat history in log file to see what actually happened.

Looking forward to your reply

Allen

Categories:
I have the same question (0)
  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at
  • Allen_Gao Profile Picture
    Microsoft Employee on at

    Thanks @renatoromao  that fetch code works for me.

    And now there is another question, could I send this conversation id back to my power agent bot(wanna use it between topics as a global variable)

    Any ideas or solutions here?

    Looking forward to your reply

    Allen

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @Allen_Gao ,

     

    Nice! 🙂

    You can use external variables inside the PVA topics.

    https://docs.microsoft.com/en-us/power-virtual-agents/authoring-variables-bot#set-a-bot-variables-value-from-external-sources 

  • Allen_Gao Profile Picture
    Microsoft Employee on at

    Hi @renatoromao thanks for your reply. 

    Have checked that doc, still get a little confused.

    As in previous step I already got the conversationId,

    now I want to set conversationId as a global variable in my bot

    but I need to set a question first then I could set the value of it?

    Also, how to send the conversationId back to bot? as the bot is not an API, it could not receive the HTTP request?

     

    Inside that doc it said could append variable in store, but how could use that variable in PowerVA?

    but how does that work? really get confused here

     

    Looking forward to your reply

    Allen

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 279

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 222 Super User 2026 Season 1

#3
Arild Aarnes Profile Picture

Arild Aarnes 64 Super User 2026 Season 1

Last 30 days Overall leaderboard