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

Is linkToConversation now broken? (JavaScript API)

(3) ShareShare
ReportReport
Posted on by 70
 
Is anyone else suddenly encountering this failing with 400 Bad Request?

For example, even running the code via the browser console from the documentation page now returns a 400 error, despite passing a valid incident ID and a UI message appearing saying the conversation was linked successfully.

//Linking an incident record with the current conversation 
Microsoft.Omnichannel.linkToConversation("incident", "06318998-607a-ef11-ac20-002248c6bc8a").then((response) => { 
    // Refreshing the tab UI  
    Microsoft.Apm.refreshTab("tab-id-3"); 
}, (error) => { 
    console.log(error); 
});
It seems the payload (generated on the backend) is now invalid, leading to the 400 error. I've been trying to escalate this through support, but seem to be stuck with the usual frustrations around mandatory phone calls/screen share sessions causing significant delays on a ticket where the contact preference is email and issue has been clearly articulated.
 
 
I have the same question (0)
  • Suggested answer
    PerezAguiar Profile Picture
    Microsoft Employee on at
    Hey
     
     
    Have you tried running this with the 3 parameters? Entity, RecordID and ConversationID?
     
    Regards,
  • DanNewton Profile Picture
    70 on at
    Hi @PerezAguiar - it looks like ConversationID is optional so we are only passing entity incident and incident id but getting the 400 bad request error.
     
    I just tried with Entity, RecordID and ConversationID (as below) but still get the 400 bad request:
     
    //Linking an incident record with the current conversation 
    Microsoft.Omnichannel.linkToConversation("incident", "41d96efa-2f7b-ef11-ac20-0022480089c8", "52e7e8dd-df27-4936-8619-7ec97dff09c3").then((response) => { 
        // Refreshing the tab UI  
        Microsoft.Apm.refreshTab("tab-id-3"); 
    }, (error) => { 
        console.log(error); 
    });

    This has worked previously so I think there is a backend issue/bug - unfortunately landing that message with support and getting it escalated to the developers isn't as easy as it should be.

     

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 July Top 10 Community Leaders

These are the community rock stars!

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

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 25 Most Valuable Professional

#3
11manish Profile Picture

11manish 17 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans