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

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

Unable to Get Ongoing Conversation ID from Omnichannel SDK event automatically

(0) ShareShare
ReportReport
Posted on by 45

I need to obtain the ongoing conversation ID at the page level since I have configured Omnichannel in our web application. To do that, I created some code and an Omnichannel SDK predefined event, the code for which is provided below.

window.addEventListener("lcw:onMessageReceived", function handleWidgetMessageReceivedEvent(payload){
   
    alert("OnMessageRecieved"+ payload.detail.conversationId);    
    // Handle the live chat widget message sent event
});

We don't receive any conversation-related information when we start a chat, but when we refresh the page in the browser, data starts to appear. When we start a chat, we don't get any conversation-related information, but when we refresh the page in the browser, information starts to appear.

If you have any further questions, kindly let me know.

Thank you...

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 42 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 35

#3
CU29080825-0 Profile Picture

CU29080825-0 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans