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 :
Service | Customer Service, Contact Center, Fie...
Answered

Unable to retrieve Omnichannel Conversation ID in Copilot Studio Voice Bot

(3) ShareShare
ReportReport
Posted on by 41

We are currently implementing a Copilot Studio voice bot integrated with the Dynamics 365 Contact Center (voice channel via workstream).

Our goal is to create a Case during the bot conversation and correctly link it to the active Omnichannel conversation (msdyn_conversation / msdyn_ocliveworkitem) so that it appears properly in the agent experience.

However, we are running into the following issue:

Problem:
Within the Copilot Studio bot we are unable to retrieve the correct Conversation ID that exists in Dynamics (msdyn_conversationid).

What we tried:


  • system.conversationId → returns a Bot Framework conversation ID (not matching Dataverse)

  • system.activity.id / turn.activity.id → not usable

  • channelData → does not contain usable Omnichannel context in the voice channel

  • global.msdyn_* variables → no conversationId exposed

  • Power Automate triggered from the bot → no reliable conversationId in trigger payload

  •  

In all cases, the ID we get does not match the Conversation record visible in Dynamics (msdyn_ocliveworkitem / msdyn_conversation).

Context:


  • Channel: Voice (through Dynamics 365 Contact Center)

  • Bot: Copilot Studio (IVR scenario)

  • Workstream configured and bot correctly attached

  • Conversation is visible in Dynamics during runtime


  •  

Goal:


  • Retrieve the active Omnichannel Conversation ID during the bot session

  • Use it when creating a Case (msdyn_conversationid lookup)

  • Ensure proper linking between Case ↔ Conversation

  •  

Question:
Is there any supported way to access the current Omnichannel Conversation ID (msdyn_conversationid / live work item ID) from within a Copilot Studio bot running in the voice channel?

Or is this context not exposed to the bot runtime by design?

Are there any recommended patterns to:


  • either retrieve the correct Conversation ID

  • or reliably link a Case to the active Conversation during a bot interaction


  •  

Any guidance or confirmed limitations would be highly appreciated.

 

A very desperate thank you in advance,

Sam

I have the same question (0)
  • Suggested answer
    Muhammad Shahzad Shafique Profile Picture
    2,606 Most Valuable Professional on at
    For Dynamics 365 Contact Center voice channels, the active Omnichannel conversation record (msdyn_ocliveworkitem / msdyn_conversation) is created and managed by Omnichannel infrastructure, but the corresponding Dataverse record ID is not surfaced to the Copilot Studio runtime.

    Recommended Patterns
     
    1. Create the Case during the bot interaction and store a correlation key:
    • Case Number
    • Phone Number (ANI)
    • Call ID / Telephony Session ID (if available)
    • Custom Correlation ID generated by the bot
    When the conversation is escalated or completed, use Power Automate, plugin, or custom integration to associate the Case with the Omnichannel conversation.

    2. After conversation creation:
    1. Generate a unique Correlation ID in the bot.
    2. Save it on the Case.
    3. Save the same Correlation ID on a custom field on the conversation record (via post-conversation automation).
    4. Link records asynchronously.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 51 Super User 2026 Season 1

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#3
Nagaraju_Matta Profile Picture

Nagaraju_Matta 50

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans