CREATE SOURCE MAP

Cette page d'aide concerne Studio. Ces informations sont également disponibles pour Desktop Studio.

Dépendances

Créer une carte source est à utiliser uniquement avec Proactive XS.

Types de scripts pris en charge

Icon of purple telephone handset

Téléphone

Propriétés de saisie

Ces propriétés définissent les données que l'action utilise lors de son exécution.

Propriété

Description

Ajouter une légende

Entrez une courte phrase qui identifie cette action dans le script de manière unique. La légende est affichée sur le canevas de script sous l’icône de l’action.

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

Conditions de la branche résultat

Les conditions de branche de résultat vous permettent de créer des branches dans votre script afin de gérer différents résultats lors de l'exécution d'une action.

Condition

Description

Par défaut 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.
Erreur 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.

Mappage de Champs

En association avec l'action Create Source Map, vous devez inclure une Snippet action qui définit les mappages de champs entre NiCE CXone et votre CRMClosed Third-party systems that manage such things as contacts, sales information, support details, and case histories.. Voici les champs système auxquels vous pouvez les mapper.

  • Adresse
  • Agent
  • Identification de l'appelant
  • CallRequestStaleMinutes
  • Ville
  • Conformité
  • Confirmation requise
  • CustomerField1
  • CustomerField2
  • ExternalID
  • FirstName
  • Nom de famille
  • Notes
  • PhoneNumber
  • PreferredCallTime
  • Priorité
  • Score
  • État
  • Fuseau horaire
  • Zipper

Vous pouvez également mapper vers Définition de Données personnalisées que vous avez créée dans NiCE CXone.

Exemple de script

Cet exemple montre comment cette action peut être utilisée dans les scripts. Il ne s'agit pas d'un script complet. Des scripts supplémentaires peuvent être nécessaires.

Le script présenté ci-dessous peut être utilisé pour récupérer une carte source (à l'aide de Get Source Map) ou pour créer une nouvelle carte source (à l'aide de Create Source Map). Prenez note de tous les mappages issus de Create Source Map, qui permettent de composer les enregistrements provenant du CRM.

Ce script contient deux actions Extrait, qui nécessitent quelques modifications lors de l'intégration de cet exemple dans votre script.

Le snippet Make Changes Here GET SOURCE contient la ligne de code suivante

ASSIGN sourceName = "Nick Desk"		

Le snippet Make Changes Here CREATE SOURCE contient le code suivant :

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]"
			}
		}	

Exemple de script téléphonique utilisant l'action Create Source Map

Télécharger ce script.