通过


取消链接从对话

Customer Service 全渠道提供了一套功能,扩展了 Dynamics 365 Customer Service Enterprise 的能力,使组织能够通过数字消息传递渠道与客户即时联系和互动。 访问 Customer Service 全渠道需要额外的许可证。 有关详细信息,请参见 Dynamics 365 Customer Service 定价概述Dynamics 365 Customer Service 定价计划页面。

此功能可用于取消已链接的客户(客户或联系人)或案例类型的实体记录与对话的链接。

Syntax

Microsoft.Omnichannel.unlinkFromConversation(entityLogicalName, recordId, conversationId);

参数

参数 类型 Description
实体逻辑名称 String 实体的逻辑名称(例如客户、联系人或事件)
记录 ID String 要取消链接的实体记录的唯一标识符
*conversationId String 要取消链接的对话的唯一标识符。 也称为 liveworkitemId。 如果不提供此参数,实体将默认取消与焦点对话的链接。

* 指示可选参数。

返回值

根据作的结果返回已解决或拒绝的 Promise。

Example

//Unlinking an already linked incident record from the current conversation 
Microsoft.Omnichannel.unlinkFromConversation("incident", "6b726d86-d37c-43b8-b3a4-c4056ddd2e07", "b7397aae-ecf8-43a6-aeb0-07d294efb494").then((response) => { 
    // Refreshing the tab UI  
    Microsoft.Apm.refreshTab("tab-id-3"); 
}, (error) => { 
    console.log(error); 
}); 

实时聊天 SDK 参考
全渠道 JavaScript API 参考
获取对话
getConversationId
链接到对话
开放对话
发送消息到对话