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 / Virtual Agent Bot has ...
Copilot Studio
Answered

Virtual Agent Bot has empty variable msdyn_ConversationId

(1) ShareShare
ReportReport
Posted on by

Hello,

I'm having a problem with Power Virtual Agent. When I start a new voice chat the bot doesn't insert a conversationId in the variable bot.msdyn_conversationId. I controlled everything and have no idea what's wrong.

I discoverd this issue checking why a couple of Power automate flows continued to fail an notiched the empty conversationId.

I'm sure the bot should be working fine cuase it was exported from an enviroment where it worked whitout problem whit all the needed components.

Has anyone an Idea about what could have I missed?

Categories:
I have the same question (0)
  • Verified answer
    HenryJammes Profile Picture
    Microsoft Employee on at

    Hi @DavideSalma,

     

    This seems specific to the Dynamics 365 Omnichannel for Customer Service integration.

    Can you ask the question on their community forum? Dynamics 365 Customer Service Forum - Support & Help.

     

    I'm also sharing how to get the Conversation ID through other means:

    1) In the new PVA unified authoring canvas (currently in public preview)

    For chatbots created in the new authoring canvas, you can get the conversation id directly from the system variables:

    HenryJammes_0-1669409107541.png

    2) In the production version of PVA, using Bot Framework Composer

    Open the PVA bot with Bot Framework Composer:

    HenryJammes_1-1669409192917.png

    Create a new dialog (e.g. GetConversationId)

    HenryJammes_2-1669409349518.png

    In the dialog, under "Dialog Interface", add a new Output.
    With a key name, e.g. "conversationId" and of type "string".

    HenryJammes_3-1669409448820.png

    In BeginDialog, add a new node of type "Set a property" (under "Manage properties"), and define it with:

    Property: dialog.result.conversationId

    Value: =turn.activity.id (even if it's not auto-suggested)

    HenryJammes_4-1669409640245.png

    In Bot Framework Composer, the final step is to publish the bot:

     

    HenryJammes_5-1669409707196.png

    Back in Power Virtual Agents, in a topic, you can select "Redirect to another topic" and select the "getConversationId" dialog.

    The conversationId variable will be available as an output:

    HenryJammes_6-1669409928357.png

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 572

#2
Haque Profile Picture

Haque 154

#3
chiaraalina Profile Picture

chiaraalina 144 Super User 2026 Season 1

Last 30 days Overall leaderboard