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

Notifications

Announcements

Community site session details

Community site session details

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 205 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard