使用解决方案迁移记录路由的配置
适用于:Dynamics 365 Contact Center—嵌入、Dynamics 365 Contact Center—独立 和 Dynamics 365 Customer Service
使用解决方案和配置迁移工具将配置从源环境迁移到目标环境以进行记录路由。
有关如何使用解决方案或 Configuration Migration Tool 的信息,请转到 Power Platform 中用于 ALM 的工具和应用概述。
先决条件
必须满足以下先决条件:
- 确保执行渠道配置迁移的用户具有以下权限:
- 从源环境导出解决方案。
- 将解决方案导入到目标环境。
- 对使用配置迁移工具从源环境迁移的所有表的读取权限。
- 对使用配置迁移工具迁移到目标环境的所有表的完全权限。
- 在源环境中,如果任何表或列引用以下内容,应确保它们存在于目标环境中,然后再继续迁移:
- 自定义表(实体)
- 列(属性)
- 关系
- 选择项(选项集)
- 查找值
记录路由配置迁移步骤
您必须按照列出的顺序执行这些步骤,才能成功迁移配置数据:
- 迁移会话模板和通知模板的配置。
- 迁移基于技能的传递规则集的配置。
- 迁移新产能配置文件的配置。
- 迁移队列的配置。
- 迁移引入规则和工作流程的配置。
迁移会话模板和通知模板的配置
如果以下组件在您的设置中可用,将它们添加到解决方案中,然后将解决方案导出和导入到目标环境中:
将以下组件添加到解决方案,并将它从源环境导出:
- 代理脚本 (msdyn_productivityagentscripts)
- 代理脚本步骤 (msdyn_productivityagentscriptsteps)
- 应用程序选项卡模板 (msdyn_applicationtabtemplates)
- 通知字段 (msdyn_notificationfields)
- 通知模板 (msdyn_notificationtemplates)
- 宏 (processes)
- 会话模板 (msdyn_sessiontemplates)
- 模板参数 (msdyn_templateparameters)
将解决方案导入到目标环境。
有关解决方案的详细信息,请转到 Power Apps 中的解决方案。
迁移基于技能的传递规则集的配置
如果在设置中使用基于技能的路由规则集,请执行迁移相应配置的步骤。
有关用于获取所有必需记录的示例架构,请转到基于技能的传递配置的示例架构。
使用配置迁移工具为以下基于技能的路由配置创建架构并从源环境(组织)导出数据。
- 实体显示名称:创建架构时,按下表中所述的顺序选择表(实体)。
- 属性显示名称:建议您选择表中定义的列(属性)。 不需要选择现成的系统定义的列,如创建者、创建时间、修改者、修改时间和负责人。 如果需要,可以选择自定义列。
重要提示
对于 Characteristic 表,必须在目标环境中手动创建 bookableresourcecharacteristictype 全局选项值,或者在必要时使用解决方案从源环境中迁移它。
实体显示名称(逻辑名称) 属性显示名称(逻辑名称) 使用 FetchXML 筛选记录 特征(特征) - 特征类型 (characteristictype)
- 特征 (characteristicid)
- 说明(说明)
- 名称(名称)
评分模型 (ratingmodel) - 最大评分值 (maxratingvalue)
- 最小评分值 (minratingvalue)
- 名称(名称)
- 评分模型 (ratingmodelid)
评分值(评分值) - 名称(名称)
- 评分模型 (ratingmodel)
- 评分值 (ratingvalueid)
- 值(值)
生成架构并保存它。
导出数据并生成压缩 (.zip) 文件。
使用配置迁移工具,并选择相应的选项以使用压缩文件将数据导入目标环境。
迁移新产能配置文件的配置
如果您在设置中配置了新产能配置文件,请执行迁移相应配置的步骤。
有关用于获取所有必需记录的示例架构,请转到产能配置文件的示例架构。
小费
使用配置迁移工具迁移新的产能配置文件后,使用解决方案迁移更新。
使用 Configuration Migration Tool 在源环境中创建架构并导出数据以进行产能配置文件配置。
- 实体显示名称:创建架构时,按下表中所述的相同顺序从列表中选择表(实体)。
- 属性显示名称:建议您选择表中定义的列(属性)。 不需要选择现成的系统定义的列,如创建者、创建时间、修改者、修改时间和负责人。 如果需要,可以选择自定义列。
- 使用 FetchXML 筛选记录:对于每个所选表,使用表中提到的适当 FetchXML 查询来根据您的要求获取单个、多个或所有记录。 对于单个或多个行,您需要使用源环境来获取 uiname 中的正确名称和值中的 GUID。 如果需要,可以使用高级查找菜单项构造适当的 FetchXML 查询。
实体显示名称(逻辑名称) 属性显示名称(逻辑名称) 使用 FetchXML 筛选记录 产能配置文件 (msdyn_capacityprofile) - 限制分配 (msdyn_blockassignment)
- 产能配置文件 (msdyn_capacityprofileid)
- 默认最大单位 (msdyn_defaultmaxunits)
- 名称 (msdyn_name)
- 重置持续时间 (msdyn_resetduration)
- 唯一名称 (msdyn_uniquename)
示例 1:适用于所有产能配置文件记录 <fetch>
<entity name="msdyn_capacityprofile">
<filter type="and">
<condition attribute="ismanaged" operator="eq" value="0" />
</filter>
</entity>
</fetch>
示例 2:适用于单个产能配置文件记录
<fetch>
<entity name="msdyn_capacityprofile">
<filter type="and">
<condition attribute="msdyn_capacityprofileid" operator="eq" uiname="Demo Capacity Profile 1" uitype="msdyn_capacityprofile" value="{F57CFE3C-14BD-D53E-F423-A1E7F9749DFB}" />
</filter>
</entity>
</fetch>
示例 3:适用于多个产能配置文件记录
<fetch>
<entity name="msdyn_capacityprofile">
<filter type="and">
<condition attribute="msdyn_capacityprofileid" operator="in">
<value uiname="Demo Capacity Profile 1" uitype="msdyn_capacityprofile">{F57CFE3C-14BD-D53E-F423-A1E7F9749DFB}</value>
<value uiname="Demo Capacity Profile 2" uitype="msdyn_capacityprofile">{D0B8ABFB-4A9F-0B1F-6FF4-8003E29A623C}</value>
</condition>
</filter>
</entity>
</fetch>
生成架构并保存它。
导出数据并生成压缩 (.zip) 文件。
打开配置迁移工具,选择选项将数据导入目标环境。
迁移队列配置
使用 Configuration Migration Tool 为队列配置创建架构并从源环境导出数据。
- 实体显示名称:创建架构时,按下表中所述的相同顺序从列表中选择表(实体)。
- 属性显示名称:建议您选择表中定义的列(属性)。 不需要选择现成的系统定义的列,如创建者、创建时间、修改者、修改时间和负责人。 如果需要,可以选择自定义列。
- 使用 FetchXML 筛选记录:对于每个所选表,使用表中提到的适当 FetchXML 查询来根据您的要求获取单个、多个或所有记录。 对于单个或多个行,您需要使用源环境来获取 uiname 中的正确名称和值中的 GUID。 如果需要,可以使用高级查找菜单项构造适当的 FetchXML 查询。
- 配置导入设置:对于决策合同表,确保选中不更新现有记录复选框。
如果您对队列使用现成的分配方法,如最高产能和轮循机制,请跳过以下实体:
- 决策规则集
- 分配配置
- 分配配置步骤
在配置迁移工具导入选择条件之前,分配规则集必须在系统中可用。 因此,您需要按照指定的顺序执行以下步骤来迁移记录队列的配置:
重要提示
- 每次导入队列记录时,您都必须创建新队列记录或更新现有队列记录。 不要在同一数据导入中混合操作。
- 当队列表的 data.xml 中的所有记录都要创建时,确保 schema.xml 中存在以下行:
<field displayname="Queue type" name="msdyn_queuetype" type="optionsetvalue" customfield="true"/>
,并且相应的数据也会有 msdyn_queuetype 字段。 - 当队列表的 data.xml 中的所有记录都要更新时,确保删除 schema.xml 中的以下行:
<field displayname="Queue type" name="msdyn_queuetype" type="optionsetvalue" customfield="true"/>
,并且相应的数据也不会有该 msdyn_queuetype 字段。 - 当要迁移的队列设置了溢出条件时,您必须首先导出和导入决策规则集。 迁移顺序参数应如下所示:
- 决策合同
- 决策规则集
- 队列
- 分配配置
- 无选择条件的分派配置步骤
- 工作时间
- 溢出操作
- 您无法迁移与“工作时间”表关联的“日历”项目。 将“工作小时”表导入目标环境后,您需要正确设置它。
步骤 1:导出和导入没有选择条件的规则集
下表汇总了实体和相应的 FetchXML 示例。
实体显示名称(逻辑名称) | 属性显示名称(逻辑名称) | 使用 FetchXML 筛选记录 |
---|---|---|
队列(队列) |
|
示例 1:记录的所有队列 示例 2:记录的单个队列 示例 3:记录的多个队列 |
决策合同 (msdyn_decisioncontract) |
|
示例 1:所有记录队列的决策合同 示例 2:单个记录队列的决策合同 示例 3:多个记录队列的决策合同 |
没有选择条件的决策规则集 (msdyn_decisionruleset) |
|
示例 1:未定义选择条件的所有记录队列的决策规则集 示例 2:未定义选择条件的单个记录队列的决策规则集 示例 3:未定义选择条件的多个记录队列的决策规则集 |
分配配置 (msdyn_assignmentconfiguration) |
|
示例 1:所有记录队列的分配配置 示例 2:单个记录队列的分配配置 示例 3:多个记录队列的分配配置 |
无选择条件的分配配置步骤 (msdyn_assignmentconfigurationstep) |
|
示例 1:未定义选择条件的所有记录队列的分配配置步骤 示例 2:未定义选择条件的单个记录队列的分配配置步骤 示例 3:未定义选择条件的多个记录队列的分配配置步骤 |
工作时间 (msdyn_operatinghour) |
|
示例 1:所有记录队列的工作时间 示例 2:单个记录队列的工作时间 示例 3:多个记录队列的工作时间 |
溢出操作配置 (msdyn_overflowactionconfig) |
|
适用于溢出操作配置的 FetchXML |
执行以下步骤以导出和导入规则集:
生成架构并保存它。
导出数据并生成压缩 (.zip) 文件。
解压缩 .zip 文件,打开解压缩文件夹中的 data.xml 文件,然后执行下列操作:
在源和目标环境中,运行以下 OData API 调用并记下
msdyn_decisioncontractid
的 GUID。https://<OrgURL>/api/data/v9.1/msdyn_decisioncontracts?$select=msdyn_decisioncontractid&$filter=msdyn_uniquename eq 'msdyn_assignmentoutput'
在 data.xml 文件中,将源环境中出现的所有 msdyn_decisioncontractid GUID 替换为目标环境的 msdyn_decisioncontractid GUID。
在源和目标环境中,运行以下 OData API 调用并记下
msdyn_decisioncontractid
的 GUID。https://<OrgURL>/api/data/v9.1/msdyn_decisioncontracts?$select=msdyn_decisioncontractid&$filter=msdyn_uniquename eq 'msdyn_selectionruleoutput'
在 data.xml 文件中,将源环境中出现的所有 msdyn_decisioncontractid GUID 替换为目标环境的 msdyn_decisioncontractid GUID。
在源和目标环境中,运行以下 OData API 调用并记下 msdyn_decisioncontractid 的 GUID。
https://<OrgURL>/api/data/v9.1/msdyn_decisioncontracts?$select=msdyn_decisioncontractid&$filter=msdyn_uniquename eq 'msdyn_queueoverflowrulesetinput'
在 data.xml 文件中,将源环境中出现的所有 msdyn_decisioncontractid GUID 替换为目标环境的 msdyn_decisioncontractid GUID。
在源和目标环境中,运行以下 OData API 调用并记下 msdyn_decisioncontractid 的 GUID。
https://<OrgURL>/api/data/v9.1/msdyn_decisioncontracts?$select=msdyn_decisioncontractid&$filter=msdyn_uniquename eq 'msdyn_queueoverflowrulesetoutput'
在 data.xml 文件中,将源环境中出现的所有 msdyn_decisioncontractid GUID 替换为目标环境的 msdyn_decisioncontractid GUID。
再次打包提取的内容。
使用配置迁移工具,选择导入数据的选项,然后选择压缩文件。
备注
将工作时间表导入目标环境后,正确设置与工作时间表关联的日历项。
有关用于获取所有必需记录的示例架构,请转到记录队列步骤 1 的示例架构。
步骤 2:导出和导入已定义选择条件的规则集
下表汇总了实体和相应的 FetchXML 示例。
实体显示名称(逻辑名称) | 属性显示名称(逻辑名称) | 使用 FetchXML 筛选记录 |
---|---|---|
具有选择条件的决策规则集 (msdyn_decisionruleset) |
|
示例 1:已定义选择条件的所有记录队列的决策规则集 示例 2:已定义选择条件的单个记录队列的决策规则集 示例 3:已定义选择条件的多个记录队列的决策规则集 |
具有选择条件的分配配置步骤 (msdyn_assignmentconfigurationstep) |
|
示例 1:已定义选择条件的所有记录队列的分配配置步骤 示例 2:已定义选择条件的单个记录队列的分配配置步骤 示例 3:已定义选择条件的多个记录队列的分配配置步骤 |
执行以下步骤以导出和导入规则集:
生成架构并保存它。
导出数据并生成压缩 (.zip) 文件。
解压缩 .zip 文件,打开解压缩文件夹中的 data.xml 文件,然后执行下列操作:
在源和目标环境中,运行以下 OData API 调用并记下
msdyn_decisioncontractid
的 GUID。https://<OrgURL>/api/data/v9.1/msdyn_decisioncontracts?$select=msdyn_decisioncontractid&$filter=msdyn_uniquename eq 'msdyn_assignmentoutput'
在 data.xml 文件中,将源环境中出现的所有 msdyn_decisioncontractid GUID 替换为目标环境的 msdyn_decisioncontractid GUID。
在源和目标环境中,运行以下 OData API 调用并记下
msdyn_decisioncontractid
的 GUID。https://<OrgURL>/api/data/v9.1/msdyn_decisioncontracts?$select=msdyn_decisioncontractid&$filter=msdyn_uniquename eq 'msdyn_selectionruleoutput'
在 data.xml 文件中,将源环境中出现的所有 msdyn_decisioncontractid GUID 替换为目标环境的 msdyn_decisioncontractid GUID。
再次打包提取的内容。
使用配置迁移工具,选择导入数据的选项,然后选择压缩文件。
有关用于获取所有必需记录的示例架构,请转到记录队列步骤 2 的示例架构。
适用于队列的 FetchXML
<fetch>
<entity name="queue">
<filter type="and">
<condition attribute="msdyn_queuetype" operator="eq" value="192350001" />
<condition attribute="msdyn_isomnichannelqueue" operator="eq" value="1" />
<condition attribute="queueid" operator="ne" uiname="Default entity queue" uitype="queue" value="{5A4B76B0-DAB5-4717-9743-9490F2F822C6}" />
</filter>
</entity>
</fetch>
<fetch>
<entity name="queue">
<filter type="and">
<condition attribute="queueid" operator="eq" uiname="Test Queue 1" uitype="queue" value="{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}" />
</filter>
</entity>
</fetch>
<fetch>
<entity name="queue">
<filter type="and">
<condition attribute="queueid" operator="in">
<value uiname="Test Queue 1" uitype="queue">{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}</value>
<value uiname="Test Queue 2" uitype="queue">{B2862B31-3B54-EC11-8F8F-000D3A1CBB9E}</value>
</condition>
</filter>
</entity>
</fetch>
适用于决策合同的 FetchXML
<fetch distinct="true">
<entity name="msdyn_decisioncontract">
<filter type="or">
<filter type="and">
<condition attribute="msdyn_queuetype" entityname="aw" operator="eq" value="192350001" />
<condition attribute="msdyn_isomnichannelqueue" entityname="aw" operator="eq" value="1" />
<condition attribute="queueid" entityname="aw" operator="ne" uiname="Default entity queue" uitype="queue" value="{5A4B76B0-DAB5-4717-9743-9490F2F822C6}" />
</filter>
<filter type="and">
<condition attribute="msdyn_isomnichannelqueue" entityname="be" operator="eq" value="1" />
<condition attribute="msdyn_queuetype" entityname="be" operator="eq" value="192350001" />
<condition attribute="queueid" entityname="be" operator="ne" uiname="Default entity queue" uitype="queue" value="{5A4B76B0-DAB5-4717-9743-9490F2F822C6}" />
</filter>
<filter type="and">
<condition attribute="msdyn_isomnichannelqueue" entityname="bm" operator="eq" value="1" />
<condition attribute="msdyn_queuetype" entityname="bm" operator="eq" value="192350001" />
<condition attribute="queueid" entityname="bm" operator="ne" uiname="Default entity queue" uitype="queue" value="{5A4B76B0-DAB5-4717-9743-9490F2F822C6}" />
</filter>
</filter>
<link-entity name="queue" from="msdyn_assignmentinputcontractid" to="msdyn_decisioncontractid" link-type="outer" alias="aw"></link-entity>
<link-entity name="msdyn_decisionruleset" from="msdyn_inputcontractid" to="msdyn_decisioncontractid" link-type="outer" alias="bb">
<link-entity name="msdyn_assignmentconfigurationstep" from="msdyn_rulesetid" to="msdyn_decisionrulesetid" link-type="outer" alias="bc">
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="outer" alias="bd">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="outer" alias="be"></link-entity>
</link-entity>
</link-entity>
</link-entity>
<link-entity name="msdyn_decisionruleset" from="msdyn_outputcontractid" to="msdyn_decisioncontractid" link-type="outer" alias="bj">
<link-entity name="msdyn_assignmentconfigurationstep" from="msdyn_rulesetid" to="msdyn_decisionrulesetid" link-type="outer" alias="bk">
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="outer" alias="bl">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="outer" alias="bm"></link-entity>
</link-entity>
</link-entity>
</link-entity>
</entity>
</fetch>
<fetch distinct="true">
<entity name="msdyn_decisioncontract">
<filter type="or">
<filter type="and">
<condition attribute="queueid" entityname="aw" operator="eq" uiname="Test Queue 1" uitype="queue" value="{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}" />
</filter>
<filter type="and">
<condition attribute="queueid" entityname="be" operator="eq" uiname="Test Queue 1" uitype="queue" value="{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}" />
</filter>
<filter type="and">
<condition attribute="queueid" entityname="bm" operator="eq" uiname="Test Queue 1" uitype="queue" value="{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}" />
</filter>
</filter>
<link-entity name="queue" from="msdyn_assignmentinputcontractid" to="msdyn_decisioncontractid" link-type="outer" alias="aw"></link-entity>
<link-entity name="msdyn_decisionruleset" from="msdyn_inputcontractid" to="msdyn_decisioncontractid" link-type="outer" alias="bb">
<link-entity name="msdyn_assignmentconfigurationstep" from="msdyn_rulesetid" to="msdyn_decisionrulesetid" link-type="outer" alias="bc">
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="outer" alias="bd">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="outer" alias="be"></link-entity>
</link-entity>
</link-entity>
</link-entity>
<link-entity name="msdyn_decisionruleset" from="msdyn_outputcontractid" to="msdyn_decisioncontractid" link-type="outer" alias="bj">
<link-entity name="msdyn_assignmentconfigurationstep" from="msdyn_rulesetid" to="msdyn_decisionrulesetid" link-type="outer" alias="bk">
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="outer" alias="bl">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="outer" alias="bm"></link-entity>
</link-entity>
</link-entity>
</link-entity>
</entity>
</fetch>
<fetch distinct="true">
<entity name="msdyn_decisioncontract">
<filter type="or">
<filter type="and">
<condition attribute="queueid" entityname="aw" operator="in">
<value uiname="Test Queue 1" uitype="queue">{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}</value>
<value uiname="Test Queue 2" uitype="queue">{B2862B31-3B54-EC11-8F8F-000D3A1CBB9E}</value>
</condition>
</filter>
<filter type="and">
<condition attribute="queueid" entityname="be" operator="in">
<value uiname="Test Queue 1" uitype="queue">{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}</value>
<value uiname="Test Queue 2" uitype="queue">{B2862B31-3B54-EC11-8F8F-000D3A1CBB9E}</value>
</condition>
</filter>
<filter type="and">
<condition attribute="queueid" entityname="bm" operator="in">
<value uiname="Test Queue 1" uitype="queue">{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}</value>
<value uiname="Test Queue 2" uitype="queue">{B2862B31-3B54-EC11-8F8F-000D3A1CBB9E}</value>
</condition>
</filter>
</filter>
<link-entity name="queue" from="msdyn_assignmentinputcontractid" to="msdyn_decisioncontractid" link-type="outer" alias="aw"></link-entity>
<link-entity name="msdyn_decisionruleset" from="msdyn_inputcontractid" to="msdyn_decisioncontractid" link-type="outer" alias="bb">
<link-entity name="msdyn_assignmentconfigurationstep" from="msdyn_rulesetid" to="msdyn_decisionrulesetid" link-type="outer" alias="bc">
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="outer" alias="bd">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="outer" alias="be"></link-entity>
</link-entity>
</link-entity>
</link-entity>
<link-entity name="msdyn_decisionruleset" from="msdyn_outputcontractid" to="msdyn_decisioncontractid" link-type="outer" alias="bj">
<link-entity name="msdyn_assignmentconfigurationstep" from="msdyn_rulesetid" to="msdyn_decisionrulesetid" link-type="outer" alias="bk">
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="outer" alias="bl">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="outer" alias="bm"></link-entity>
</link-entity>
</link-entity>
</link-entity>
</entity>
</fetch>
适用于队列的决策规则集的 FetchXML
<fetch distinct="true">
<entity name="msdyn_decisionruleset">
<link-entity name="msdyn_assignmentconfigurationstep" from="msdyn_rulesetid" to="msdyn_decisionrulesetid" link-type="inner" alias="am">
<filter>
<condition attribute="msdyn_type" operator="ne" value="192350001" />
</filter>
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="inner" alias="an">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="ao">
<filter type="and">
<condition attribute="msdyn_queuetype" operator="eq" value="192350001" />
<condition attribute="msdyn_isomnichannelqueue" operator="eq" value="1" />
<condition attribute="queueid" operator="ne" uiname="Default entity queue" uitype="queue" value="{5A4B76B0-DAB5-4717-9743-9490F2F822C6}" />
</filter>
</link-entity>
</link-entity>
</link-entity>
</entity>
</fetch>
<fetch distinct="true">
<entity name="msdyn_decisionruleset">
<link-entity name="msdyn_assignmentconfigurationstep" from="msdyn_rulesetid" to="msdyn_decisionrulesetid" link-type="inner" alias="am">
<filter>
<condition attribute="msdyn_type" operator="ne" value="192350001" />
</filter>
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="inner" alias="an">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="ao">
<filter type="and">
<condition attribute="queueid" operator="eq" uiname="Test Queue 1" uitype="queue" value="{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}" />
</filter>
</link-entity>
</link-entity>
</link-entity>
</entity>
</fetch>
<fetch distinct="true">
<entity name="msdyn_decisionruleset">
<link-entity name="msdyn_assignmentconfigurationstep" from="msdyn_rulesetid" to="msdyn_decisionrulesetid" link-type="inner" alias="am">
<filter>
<condition attribute="msdyn_type" operator="ne" value="192350001" />
</filter>
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="inner" alias="an">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="ao">
<filter type="and">
<condition attribute="queueid" operator="in">
<value uiname="Test Queue 1" uitype="queue">{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}</value>
<value uiname="Test Queue 2" uitype="queue">{B2862B31-3B54-EC11-8F8F-000D3A1CBB9E}</value>
</condition>
</filter>
</link-entity>
</link-entity>
</link-entity>
</entity>
</fetch>
适用于分配配置的 FetchXML
<fetch>
<entity name="msdyn_assignmentconfiguration">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="bi">
<filter type="and">
<condition attribute="msdyn_queuetype" operator="eq" value="192350001" />
<condition attribute="msdyn_isomnichannelqueue" operator="eq" value="1" />
<condition attribute="queueid" operator="ne" uiname="Default entity queue" uitype="queue" value="{5A4B76B0-DAB5-4717-9743-9490F2F822C6}" />
</filter>
</link-entity>
</entity>
</fetch>
<fetch>
<entity name="msdyn_assignmentconfiguration">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="bi">
<filter type="and">
<condition attribute="queueid" operator="eq" uiname="Test Queue 1" uitype="queue" value="{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}" />
</filter>
</link-entity>
</entity>
</fetch>
<fetch>
<entity name="msdyn_assignmentconfiguration">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="bi">
<filter type="and">
<condition attribute="queueid" operator="in">
<value uiname="Test Queue 1" uitype="queue">{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}</value>
<value uiname="Test Queue 2" uitype="queue">{B2862B31-3B54-EC11-8F8F-000D3A1CBB9E}</value>
</condition>
</filter>
</link-entity>
</entity>
</fetch>
适用于分配配置步骤的 FetchXML
<fetch>
<entity name="msdyn_assignmentconfigurationstep">
<filter>
<condition attribute="msdyn_type" operator="ne" value="192350001" />
</filter>
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="inner" alias="bq">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="br">
<filter type="and">
<condition attribute="msdyn_queuetype" operator="eq" value="192350001" />
<condition attribute="msdyn_isomnichannelqueue" operator="eq" value="1" />
<condition attribute="queueid" operator="ne" uiname="Default entity queue" uitype="queue" value="{5A4B76B0-DAB5-4717-9743-9490F2F822C6}" />
</filter>
</link-entity>
</link-entity>
</entity>
</fetch>
<fetch>
<entity name="msdyn_assignmentconfigurationstep">
<filter>
<condition attribute="msdyn_type" operator="ne" value="192350001" />
</filter>
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="inner" alias="bq">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="br">
<filter type="and">
<condition attribute="queueid" operator="eq" uiname="Test Queue 1" uitype="queue" value="{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}" />
</filter>
</link-entity>
</link-entity>
</entity>
</fetch>
<fetch>
<entity name="msdyn_assignmentconfigurationstep">
<filter>
<condition attribute="msdyn_type" operator="ne" value="192350001" />
</filter>
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="inner" alias="bq">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="br">
<filter type="and">
<condition attribute="queueid" operator="in">
<value uiname="Test Queue 1" uitype="queue">{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}</value>
<value uiname="Test Queue 2" uitype="queue">{B2862B31-3B54-EC11-8F8F-000D3A1CBB9E}</value>
</condition>
</filter>
</link-entity>
</link-entity>
</entity>
适用于队列的决策规则集的 FetchXML
<fetch distinct="true">
<entity name="msdyn_decisionruleset">
<link-entity name="msdyn_assignmentconfigurationstep" from="msdyn_rulesetid" to="msdyn_decisionrulesetid" link-type="inner" alias="am">
<filter>
<condition attribute="msdyn_type" operator="eq" value="192350001" />
</filter>
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="inner" alias="an">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="ao">
<filter type="and">
<condition attribute="msdyn_queuetype" operator="eq" value="192350001" />
<condition attribute="msdyn_isomnichannelqueue" operator="eq" value="1" />
<condition attribute="queueid" operator="ne" uiname="Default entity queue" uitype="queue" value="{5A4B76B0-DAB5-4717-9743-9490F2F822C6}" />
</filter>
</link-entity>
</link-entity>
</link-entity>
</entity>
</fetch>
<fetch distinct="true">
<entity name="msdyn_decisionruleset">
<link-entity name="msdyn_assignmentconfigurationstep" from="msdyn_rulesetid" to="msdyn_decisionrulesetid" link-type="inner" alias="am">
<filter>
<condition attribute="msdyn_type" operator="eq" value="192350001" />
</filter>
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="inner" alias="an">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="ao">
<filter type="and">
<condition attribute="queueid" operator="eq" uiname="Test Queue 1" uitype="queue" value="{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}" />
</filter>
</link-entity>
</link-entity>
</link-entity>
</entity>
</fetch>
<fetch distinct="true">
<entity name="msdyn_decisionruleset">
<link-entity name="msdyn_assignmentconfigurationstep" from="msdyn_rulesetid" to="msdyn_decisionrulesetid" link-type="inner" alias="am">
<filter>
<condition attribute="msdyn_type" operator="eq" value="192350001" />
</filter>
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="inner" alias="an">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="ao">
<filter type="and">
<condition attribute="queueid" operator="in">
<value uiname="Test Queue 1" uitype="queue">{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}</value>
<value uiname="Test Queue 2" uitype="queue">{B2862B31-3B54-EC11-8F8F-000D3A1CBB9E}</value>
</condition>
</filter>
</link-entity>
</link-entity>
</link-entity>
</entity>
</fetch>
适用于分配配置步骤的 FetchXML
<fetch>
<entity name="msdyn_assignmentconfigurationstep">
<filter>
<condition attribute="msdyn_type" operator="eq" value="192350001" />
</filter>
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="inner" alias="bq">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="br">
<filter type="and">
<condition attribute="msdyn_queuetype" operator="eq" value="192350001" />
<condition attribute="msdyn_isomnichannelqueue" operator="eq" value="1" />
<condition attribute="queueid" operator="ne" uiname="Default entity queue" uitype="queue" value="{5A4B76B0-DAB5-4717-9743-9490F2F822C6}" />
</filter>
</link-entity>
</link-entity>
</entity>
</fetch>
<fetch>
<entity name="msdyn_assignmentconfigurationstep">
<filter>
<condition attribute="msdyn_type" operator="eq" value="192350001" />
</filter>
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="inner" alias="bq">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="br">
<filter type="and">
<condition attribute="queueid" operator="eq" uiname="Test Queue 1" uitype="queue" value="{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}" />
</filter>
</link-entity>
</link-entity>
</entity>
</fetch>
<fetch>
<entity name="msdyn_assignmentconfigurationstep">
<filter>
<condition attribute="msdyn_type" operator="eq" value="192350001" />
</filter>
<link-entity name="msdyn_assignmentconfiguration" from="msdyn_assignmentconfigurationid" to="msdyn_assignmentconfigurationid" link-type="inner" alias="bq">
<link-entity name="queue" from="queueid" to="msdyn_queueid" link-type="inner" alias="br">
<filter type="and">
<condition attribute="queueid" operator="in">
<value uiname="Test Queue 1" uitype="queue">{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}</value>
<value uiname="Test Queue 2" uitype="queue">{B2862B31-3B54-EC11-8F8F-000D3A1CBB9E}</value>
</condition>
</filter>
</link-entity>
</link-entity>
</entity>
</fetch>
适用于工作时间的 FetchXML
XMLCopy
<fetch>
<entity name="msdyn_operatinghour">
<link-entity name="queue" from="msdyn_operatinghourid" to="msdyn_operatinghourid" link-type="inner" alias="aa">
<filter type="and">
<condition attribute="msdyn_queuetype" operator="eq" value="192350001"/>
<condition attribute="msdyn_isomnichannelqueue" operator="eq" value="1"/>
<condition attribute="queueid" operator="ne" uiname="Default entity queue" uitype="queue" value="{5A4B76B0-DAB5-4717-9743-9490F2F822C6}"/>
</filter>
</link-entity>
</entity>
</fetch>
XMLCopy
<fetch>
<entity name="msdyn_operatinghour">
<link-entity name="queue" from="msdyn_operatinghourid" to="msdyn_operatinghourid" link-type="inner" alias="ab">
<filter type="and">
<condition attribute="queueid" operator="in">
<value uiname="Test Queue 1" uitype="queue">{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}</value>
</condition>
</filter>
</link-entity>
</entity>
</fetch>
XMLCopy
<fetch>
<entity name="msdyn_operatinghour">
<link-entity name="queue" from="msdyn_operatinghourid" to="msdyn_operatinghourid" link-type="inner" alias="ab">
<filter type="and">
<condition attribute="queueid" operator="in">
<value uiname="Test Queue 1" uitype="queue">{A5ED5CAA-3A54-EC11-8F8F-000D3A1CBB9E}</value>
<value uiname="Test Queue 2" uitype="queue">{B2862B31-3B54-EC11-8F8F-000D3A1CBB9E}</value>
</condition>
</filter>
</link-entity>
</entity>
</fetch>
适用于溢出操作配置的 FetchXML
XMLCopy
<fetch>
<entity name="msdyn_overflowactionconfig">
<filter type="and">
<condition attribute="msdyn_overflowactionconfigid" operator="eq" uiname="QueueTransfer_caae99a1-dcc4-ed11-83ff-00224805c003 " uitype="msdyn_overflowactionconfig" value="{6D49F66F-68F3-ED11-8848-00224805C003}"/>
</filter>
</entity>
</fetch>
迁移引入规则和记录工作流的配置
使用以下步骤将引入规则和记录工作流从源环境迁移到目标环境。
- 创建解决方案来从源环境导出记录路由工作流的配置。
- 使用命令栏中的添加现有按钮将所需记录添加到解决方案中。
- 选择工作流 (msdyn_liveworkstream) 表。 下表中的相关记录将被自动添加到解决方案中:
- 容量配置文件(msdyn_capacityprofile)- 必须使用配置迁移工具迁移新记录。
- 主实体传递配置 (msdyn_masterentityroutingconfiguration)。
- 决策合同 (msdyn_decisioncontract) - 适用于引入规则和记录工作流程。
- 决策规则集 (msdyn_decisionruleset) - 适用于引入规则和记录工作流程。
- 传递配置 (msdyn_routingconfiguration)。
- 传递配置步骤 (msdyn_routingconfigurationstep)。
- 工作时间 (msdyn_operatinghour)。