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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
New Discussion

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...

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 62 Most Valuable Professional

#2
Travis South Profile Picture

Travis South 23

#3
ParthPatel249 Profile Picture

ParthPatel249 19

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans