CREATE SOURCE MAP

此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。

依赖关系

Create Source Map 仅适用于 Proactive XS。

支持的脚本类型

Icon of purple telephone handset

电话

输入属性

这些属性定义操作在执行时使用的数据。

属性

说明

添加说明文字

输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。

源名称 The name of the source where the records originated. Provides a logical grouping of records within the system. If you have an invalid or missing source map, you may receive a Missing External ID error.
映射 The dynamic data structure that enables the NiCE CXone system to interpret the data from your system (CRM).

结果分支条件

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

默认 Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined.
InvalidSource Path taken if the source name provided does not exist.
InvalidRootNode Path taken if NiCE CXone cannot determine the presence of a system field or a custom definition for that field name.
InvalidFieldName Path taken if NiCE CXone cannot determine the presence of a system field or a custom definition for that field name.
MissingRequiredField Path taken if a required field necessary to process the contact is not found. Required fields include a phone number field and ExternalID.
错误 Path taken when the action fails to execute properly. For example, when there is an unexpected problem such as poor connectivity, syntax errors, and so on. The _ERR variable, with a single underscore character, should be populated with a condensed explanation of the problem.
FieldsInUseCantApply Path taken if there is an attempt made to change or remove a value currently in use by a filter.
NoChangesMade Path taken if the mapping between NiCE CXone and your system match exactly.
ExceededMaxDestinations Path taken if the number of phone numbers per contact exceeds the designated amount. For example, if the system allows for six numbers per contact and you provide seven, the system would follow this branch.

映射欄位

结合 Create Source Map 操作,您必须包含一个 Snippet 操作,该操作定义了 NiCE CXone 与您的 CRMClosed 管理联系人、销售信息、支持详细信息和案例历史记录等事项的第三方系统。 之间的字段映射。 下面是可以映射的系统字段。

  • 地址
  • 坐席
  • CallerID
  • CallRequestStaleMinutes
  • 城市
  • 合规性
  • ConfirmationRequired
  • CustomerField1
  • CustomerField2
  • ExternalID
  • FirstName
  • LastName
  • 备注
  • PhoneNumber
  • PreferredCallTime
  • 优先权
  • 分数
  • 状态
  • 时区
  • 邮政编码

您还可以映射到您在 NiCE CXone 中创建的自定义数据定义。

脚本示例

这是一个示例,说明如何在脚本中使用此操作。 它并不是一个完整的脚本。 可能还需要编写其他脚本。

下面所示脚本可用于检索源映射映(使用 Get Source Map)或创建一个新的源映射(使用 Create Source Map)。 请注意从 Create Source Map 发出的所有映射,这些映射使来自 CRM 的记录能够被拨打。

此脚本包含两个Snippet操作,将此示例纳入您的脚本时需要进行一些修改。

Make Changes Here GET SOURCE 代码片段包含以下代码行

ASSIGN sourceName = "Nick Desk"		

Make Changes Here CREATE SOURCE 代码片段包含以下代码:

DYNAMIC testData
// CHANGE BELOW VALUE DEPENDING ON TEST
ASSIGN switchValue = "No Changes Made"

SWITCH switchValue
	{
		CASE "Invalid Source"
			{
			sourceName = "I Don't Exist"
			}
		CASE "Invalid Root Node"
			{
			testData.Fail.Phone = ""
			}
		CASE "Invalid Field Name"
			{
			testData = initialResult
			testData.Mappings.MyCustomField = ""
			}
		CASE "Missing Required Fields"
			{
			testData.Mappings.City = "City"
			testData.Mappings.State = "State"
			}
		CASE "Field In Use Cant Apply"
			{
			// Switch ValueString with a CDD or SDD that you currently have applied to a source and using to filter
			testData = initialResult
			testData.Mappings.FilterOnMe = "City"
			}
		CASE "No Changes Made"
			{
			// Don't Change anything just pass in the exact same mapping we've already got
			testData = initialResult
			}
		CASE "Create Mapping System"
			{
			// SYSTEM DATA DEFINITIONS
			testData = initialResult
			testData.Mappings.TimeZone = "Time Zone"
			testData.Mappings.Compliance = "Is Cell Phone"
			testData.Mappings.ConfirmationRequired = "Confirmation Required"
			testData.Mappings.CallerID = "Caller ID"
			testData.Mappings.Score = "Score"
			testData.Mappings.CustomerField1 = "Customer Field 1"
			testData.Mappings.CustomerField2 = "Customer Field 2"
			testData.Mappings.ExternalID = "External ID"
			testData.Mappings.Priority = "Priority"
			testData.Mappings.Zip = "Zip"
			testData.Mappings.State = "State"
			testData.Mappings.City = "City"
			testData.Mappings.Address = "Address"
			testData.Mappings.LastName = "Last Name"
			testData.Mappings.FirstName = "First Name"
			testData.Mappings.PhoneNumber = "Phone Number"
			}
		CASE "Update Mapping System"
			{
			// SYSTEM DATA DEFINITIONS
			testData = initialResult
			testData.Mappings.TimeZone = "My TimeZone"
			testData.Mappings.ConfirmationRequired = "Requires Confirmation"
			testData.Mappings.CallerID = "Phone Number"
			testData.Mappings.State = "Contacts State"
			}
		CASE "Create Mapping Custom"
			{
			// CUSTOM DATA DEFINITIONS
			testData = initialResult
			testData.Mappings.YourCDDName = "[COLUMN TO MAP IT TO]"
			}
		CASE "Update Mapping Custom"
			{
			// CUSTOM DATA DEFINITIONS
			testData = initialResult
			testData.Mappings.YourCDDName = "[COLUMN TO MAP IT TO]"
			}
		}	

Example phone script using the Create Source Map action

下载此脚本。