Create Source Map

Esta página de ayuda corresponde a Desktop Studio. Esta información también está disponible para Studio.

Dependencias

Crear mapa de origen es para usar solo con Proactive XS.

Tipos de secuencias de comandos compatibles

El ícono para el tipo de script Teléfono: un auricular de teléfono de estilo antiguo con líneas curvas que indican que sale sonido de él.

Teléfono

Propiedades de entrada

Estas propiedades definen los datos que utiliza la acción al ejecutarse.

Propiedad

Descripción

Leyenda

Introduzca una frase corta que identifique de forma única esta acción en el script. La leyenda aparece en el lienzo del script debajo del ícono de acción. El valor predeterminado es el nombre de acción.

Nombre de la fuente 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.
Mapeado The dynamic data structure that enables the NiCE CXone system to interpret the data from your system (CRM).

Condiciones de rama de resultado

Las condiciones de las ramas de resultado le permiten crear ramas en su script para manejar diferentes resultados cuando se ejecuta una acción.

Condición

```

Descripción

```
Por defecto 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.
Error 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.

Mapeado de Campos

Junto con la acción Create Source Map, debe incluir una Snippet acción que define las asignaciones de campos entre NiCE CXone y su CRMClosed Third-party systems that manage such things as contacts, sales information, support details, and case histories.. Los siguientes SOn campos del sistema a los que puede asignar.

  • Dirección
  • Agente
  • CallerID
  • CallRequestStaleMinutes
  • Ciudad
  • Cumplimiento
  • ConfirmationRequired
  • CustomerField1
  • CustomerField2
  • ExternalID
  • FirstName
  • LastName
  • Notas
  • PhoneNumber
  • PreferredCallTime
  • Prioridad
  • Puntuar
  • Estado
  • Zona horaria
  • Cremallera

También puede asignar a Definición de Datos personalizados que creó en NiCE CXone.

Ejemplo de Script

Este es un ejemplo para demostrar cómo se puede utilizar esta acción en los scripts. No pretende ser un script completo. Es posible que se requiera scripting adicional.

El script que se muestra a continuación se puede utilizar para recuperar un mapa de fuente (mediante Get Source Map) o para crear un nuevo mapa de Fuente (mediante Create Source Map). Tome en cuenta todas las asignaciones que salen de Create Source Map, que permiten que los registros provenientes del CRM puedan marcarse.

Este script contiene DOs acciones Snippet, las cuales requieren algunas modificaciones al incorporar este ejemplo en su script.

El snippet Make Changes Here GET SOURCE contiene la siguiente línea de código

ASSIGN sourceName = "Nick Desk"		

El snippet Make Changes Here CREATE SOURCE contiene el siguiente código:

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

Descargue este script.