Re: Getting the Conversation ID value from PVA to Power Automate
Resurfacing this thread to suggest 2 workarounds:
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 HenryJammes_0-1669409107541.png](/_api/msdyn_richtextfiles%28CD21B9F8-56FE-477B-AD43-7451AD6D553F%29/msdyn_imageblob/$value?size=full)
2) In the production version of PVA, using Bot Framework Composer
Open the PVA bot with Bot Framework Composer:
![HenryJammes_1-1669409192917.png HenryJammes_1-1669409192917.png](/_api/msdyn_richtextfiles%285ED48532-2323-4717-A778-51D3D605AF49%29/msdyn_imageblob/$value?size=full)
Create a new dialog (e.g. GetConversationId)
![HenryJammes_2-1669409349518.png HenryJammes_2-1669409349518.png](/_api/msdyn_richtextfiles%287CCF245C-F964-4900-BE36-27040788A0D3%29/msdyn_imageblob/$value?size=full)
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 HenryJammes_3-1669409448820.png](/_api/msdyn_richtextfiles%28D423B3AC-483D-435C-9D2D-CE74D756A06B%29/msdyn_imageblob/$value?size=full)
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.conversation.id (even if it's not auto-suggested)
![HenryJammes_0-1677771797107.png HenryJammes_0-1677771797107.png](/_api/msdyn_richtextfiles%288836E736-4812-4819-A532-F801398E1B10%29/msdyn_imageblob/$value?size=full)
In Bot Framework Composer, the final step is to publish the bot:
![HenryJammes_5-1669409707196.png HenryJammes_5-1669409707196.png](/_api/msdyn_richtextfiles%285AE4B20B-3C33-4007-ADE3-E0750EE823C0%29/msdyn_imageblob/$value?size=full)
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 HenryJammes_6-1669409928357.png](/_api/msdyn_richtextfiles%28FCE6146A-5421-437F-A9B1-88A70121A3CB%29/msdyn_imageblob/$value?size=full)