(Update with the copy of version: 9.0DRAFT)
m (1 révision importée)
Ligne 1 : Ligne 1 :
=Formules de rapport=
+
=Report Formulas=
{{#anc:Report Formulas}}
 
Si vous décidez que l’un de vos rapports a besoin d'une statistique différente ou supplémentaire, vous pouvez modifier le modèle de rapport pour répondre à votre besoin. Pour ce faire, ajoutez une formule au modèle de rapport pour récupérer la statistique ou l’indicateur de performance clé (KPI) souhaité.
 
  
Étant donné que vous ne pouvez pas modifier les modèles standard fournis, si vous souhaitez modifier l’un des rapports standard, il vous suffit de créer un clone du modèle et de le modifier.
+
If you decide that one of your reports needs a different or additional statistic, you can edit the report’s template to make that happen. You can accomplish this by adding a formula to the report template that retrieves the statistic or key performance indicator (KPI) you want.  
  
Qui peut créer ces statistiques ? Si vous pouvez créer et modifier des modèles Genesys Pulse, vous pouvez utiliser des formules.
+
Since you cannot change the standard templates provided, if you want to change one of the standard reports, just create a clone of the template and make changes in the new template.
  
__TOC__
+
Who can create these statistics? If you can create and edit Genesys Pulse templates, you can use formulas.
  
{{NoteFormat|Si vous savez déjà comment utiliser les formules, vous pouvez utiliser [[RTRFunctions|la bibliothèque de fonctions]] pour vous aider à créer vos formules.}}
+
{{NoteFormat|If you already know how to use the formulas, you can use [[RTRFunctions|the function library]] to help you create your formulas.}}
  
{{CloudStep_Stack
+
==Add a Formula==
|title=Ajouter une formule
+
From the statistic detail pane while editing a widget or template, you can create or customize statistics by creating a formula.  
|text=Dans le panneau de détails des statistiques lors de la modification d’un widget ou d’un modèle, vous pouvez créer ou personnaliser des statistiques en créant une formule.  
 
  
La formule se base sur une syntaxe javascript, qui vous permet de calculer des expressions avec des valeurs fournies par d'autres statistiques et d’utiliser des fonctions fournies par Genesys pour obtenir des calculs plus spécifiques. Par exemple, vous pouvez calculer le rapport des appels abandonnés par rapport aux appels présentés dans votre file d'attente pour mesurer le pourcentage d'appels abandonnés de votre file d'attente.
+
The formula uses a javascript-based syntax, which lets you calculate expressions with values given by other statistic and use functions provided by Genesys for more specific calculations. For example, you can calculate the ratio of the calls abandoned to the calls offered in your queue to measure the percentage of abandoned calls in your queue.
|media1=Pulse_85105_Formulas2.png
 
}}
 
  
 +
[[File:Pulse 85105 Formulas2.png]]
  
{{CloudStep_Stack
+
==Display Percentages==
|title=Afficher les pourcentages
+
Let us say you want to display percentages based on two metrics. Just copy the following example using the statistics you want.  
|text=Imaginons que vous souhaitez afficher des pourcentages basés sur deux métriques. Il vous suffit de copier l'exemple suivant, en utilisant les statistiques souhaitées.  
 
  
Dans cet exemple, nous souhaitons récupérer le pourcentage d'appels sortants par rapport au total d'appels entrants et sortants. La formule peut accéder à n’importe quelle statistique dans un modèle avec la syntaxe suivante : <tt>Données.''Alias statistique''.Valeur</tt>. La formule doit renvoyer une valeur <tt>Result</tt> valide.  
+
In this example, we want to retrieve the percentage of outbound calls out of the total of both inbound and outbound calls. The formula can access any statistic within a template with the following syntax: <tt>Data.''Statistic-Alias''.Value</tt>. The formula must return a valid <tt>Result</tt> value.  
  
Dans la formule suivante, nous supposons que les appels sortants sont définis par un alias statistique <tt>Sortant</tt> et les appels entrants par un alias statistique <tt>Entrant</tt>.
+
In the following formula, we assume the outbound calls are defined by a statistic alias <tt>Outbound</tt> and the inbound calls are  <tt>Inbound</tt>.
  
'''Formule : Calculer un pourcentage'''
+
'''Formula: Calculate a Percentage'''
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
<source enclose="div" lang="javascript">if ((Data.Outbound.Value + Data.Inbound.Value) != 0) 
+
<source enclose="div" lang="javascript">if ((Data.Outbound.Value + Data.Inbound.Value) != 0)  
Result = 100 * Data.Outbound.Value / (Data.Outbound.Value + Data.Inbound.Value); 
+
Result = 100 * Data.Outbound.Value / (Data.Outbound.Value + Data.Inbound.Value);  
 
else Result = 0;
 
else Result = 0;
 
</source></div>
 
</source></div>
|media1=Pulse_85105_Formulas2.png
 
}}
 
  
{{CloudStep_Stack
+
[[File:Pulse 85105 Formulas2.png|Pulse 85105 Formulas2.png]]
|title=Afficher les KPI d’état des agents
 
|text=Imaginons que vous souhaitez afficher des KPI pour l'état des agents. Il vous suffit d'utiliser la statistique <tt>Current_Status</tt>.  
 
  
<toggledisplay linkstyle font-size:larger showtext="[+] Comment la statistique Current_Status est-elle définie" hidetext="[-] Comment la statistique Current_Status est-elle définie">{{ToggleTextWrapper}}
+
==Display Agent Status KPIs==
 +
Let us say you want to display KPIs for agent status. Just use the <tt>Current_Status</tt> statistic.
 +
[[File:Pulse85105formula1.png|Pulse85105formula1.png]]
  
La statistique <tt>Current_Status</tt> est définie par les propriétés des options de Stat Server. Le type de statistique <tt>ExtendedCurrentStatus</tt> renvoie un objet spécifique qui peut être analysé davantage pour n'indiquer que la durée de l'objet.
+
=== How the Current_Status Statistic is Defined===
  
'''[ExtendedCurrentStatus]'''<br/>Catégorie=CurrentState<br/>MainMask=*<br/>Objets=Agent<br/>Objet=DNAction
+
The <tt>Current_Status</tt> statistic is defined by Stat Server options properties. The statistic type <tt>ExtendedCurrentStatus</tt> returns a specific object that can be further analyzed to provide only the Duration of the object.
</toggledisplay>
 
  
Vous pouvez utiliser des formules pour trouver les informations dont vous avez besoin :
+
'''[ExtendedCurrentStatus]'''<br/>Category=CurrentState<br/>MainMask=*<br/>Objects=Agent<br/>Subject=DNAction
  
<toggledisplay linkstyle font-size:larger showtext="[+] Afficher la durée de l’état actuel d’un agent" hidetext="[-] Afficher la durée de l’état actuel d’un agent">{{ToggleTextWrapper}}
+
You can use formulas to find the information you need:
Vous pouvez afficher la durée de l'état actuel d’un agent à l'aide de la statistique <tt>Current_Status</tt>.
 
  
'''Formule : Obtenir la durée de l'état'''
+
===Show Agent Time in Current State===
 +
You can display the agent status duration using the <tt>Current_Status</tt> statistic.
 +
 
 +
'''Formula: Get Status Duration'''
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 
<source enclose="div" lang="javascript">Result = G.GetStatusDuration(Data.Current_Status.Value);</source></div>
 
<source enclose="div" lang="javascript">Result = G.GetStatusDuration(Data.Current_Status.Value);</source></div>
</toggledisplay>
 
  
<p>
+
=== Show the Reason Code Selected by the Agent===
<toggledisplay linkstyle font-size:larger showtext="[+] Afficher le code de raison sélectionné par l'agent" hidetext="[-] Afficher le code de raison sélectionné par l’agent">{{ToggleTextWrapper}}
+
You can display the reason code for the agent status.
Vous pouvez afficher le code de raison pour l'état d'un agent.
 
  
'''Formule : Get Reason Code'''
+
'''Formula: Get Reason Code'''
  
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;"><source enclose="div" lang="javascript">Result = G.GetReasonCodes(Data.Current_Status.Value);</source></div>
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;"><source enclose="div" lang="javascript">Result = G.GetReasonCodes(Data.Current_Status.Value);</source></div>
  
Si vous souhaitez afficher davantage de données utilisateur en plus du code de raison, vous devez activer la propriété Données supplémentaires (Données utilisateur) de la statistique et appliquer une formule pour filtrer uniquement le code de raison à partir de la statistique Current_Status obtenue, qui contient les données utilisateur et le code de raison.
+
If you want to display more user data in addition to the Reason Code, you need to enable the Additional Data property (User Data) of the statistic and apply a formula to filter only the Reason Code from the resulting Current_Status, which contains both the User Data and Reason code.
  
'''Formule : Filtrer uniquement le code de raison'''
+
'''Formula: Filter only Reason Code'''
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 
<source enclose="div" lang="javascript">var res = G.GetReasonCodes(Data.Current_Status.Value);
 
<source enclose="div" lang="javascript">var res = G.GetReasonCodes(Data.Current_Status.Value);
Ligne 81 : Ligne 73 :
  
 
</source></div>
 
</source></div>
</toggledisplay></p>
 
  
<p>
+
'''Formula: Get Reason Code by Media Type'''  (<tt>chat</tt> in the example below)
<toggledisplay linkstyle font-size:larger showtext="[+] Afficher l'état actuel de l'agent par type de média" hidetext="[-] Afficher l’état actuel de l’agent par type de média">{{ToggleTextWrapper}}
+
 
Vous pouvez afficher l'état actuel de l'agent par type de média. 
+
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 +
<source enclose="div" lang="javascript">function GetNRCode(state) {
 +
if (state === null || state.type !== "AgentCurrentState")
 +
return null;
 +
 
 +
var res = "";
 +
var n = state.DNs.length;
 +
 
 +
if (n > 0) {
 +
for (var i = 0; i < n; ++i) {
 +
var dn = state.DNs[i];
 +
 
 +
if (dn.DNType === CFGNoDN && dn.DN === "chat") {
 +
var actionsLength = dn.Actions.length;
 +
                 
 +
for (var j = 0; j < actionsLength; j++) {
 +
if (dn.Actions[j].Action === "NotReadyForNextCall" ) {
 +
var userDataLength = dn.Actions[j].Data.UserData.length;
 +
                               
 +
if (userDataLength > 0) {
 +
for (var k = 0; k < userDataLength; k++) {
 +
                                if (dn.Actions[j].Data.UserData[k].Key === "ReasonCode") {
 +
res = dn.Actions[j].Data.UserData[k].Value;
 +
                                       
 +
break;
 +
                                }
 +
                            }
 +
                        }
 +
                    }
 +
                }                 
 +
                   
 +
break; 
 +
            }
 +
}
 +
}
 +
 
 +
return res;
 +
}
 +
 
 +
Result = GetNRCode(Data.Current_Status.Value);
 +
</source></div>
 +
 
 +
'''Formula: Get Reason Code For Voice'''
 +
 
 +
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 +
<source enclose="div" lang="javascript">function GetVR(state) {
 +
if (state === null || state.type !== "AgentCurrentState")
 +
return null;
 +
 +
var res = "";
 +
var n = state.DNs.length;
 +
 +
if (n > 0) {
 +
for (var i = 0; i < n; ++i) {
 +
var dn = state.DNs[i];
 +
 +
if (dn.DNType === 1 && dn.DN !== null) {
 +
var actionsLength = dn.Actions.length;
 +
 +
for (var j = 0; j < actionsLength; j++) {
 +
if (dn.Actions[j].Action === "NotReadyForNextCall") {
 +
var userDataLength = dn.Actions[j].Data.UserData.length;
 +
 +
for (var h = 0; h < userDataLength; h++) {
 +
if (dn.Actions[j].Data.UserData[h].Key === "ReasonCode") {
 +
res = dn.Actions[j].Data.UserData[h].Value;
 +
 +
break;
 +
}
 +
}
 +
 +
break;
 +
}
 +
}
 +
 +
break;
 +
}
 +
}
 +
}
 +
 
 +
return res;
 +
}
 +
 
 +
Result = GetVR(Data.Current_Status.Value);
 +
</source></div>
 +
 
 +
{{NoteFormat|The formula should be customized according to your environment. Please contact Genesys Customer Care for details.|2}}
 +
 
 +
===Show Current Agent State by Media Type===
 +
You can display the current agent state by media type.  
  
'''Formule - Obtenir l'état de l'agent par type de média'''
+
'''Formula - Get agent state by media type'''
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 
<source enclose="div" lang="javascript">Result = G.GetAgentNonVoiceStatus(Data.Current_Status.Value, 'email');</source></div>
 
<source enclose="div" lang="javascript">Result = G.GetAgentNonVoiceStatus(Data.Current_Status.Value, 'email');</source></div>
</toggledisplay>
 
</p>
 
|media1=pulse85105formula1.png
 
}}
 
{{CloudStep_Stack
 
|title=Afficher les propriétés d'interaction
 
|text=Imaginons que vous souhaitez afficher les propriétés d'interaction, y compris la segmentation des flux, l’ANI et la DNIS. Vous pouvez utiliser des formules pour trouver les informations dont vous avez besoin :
 
<p>
 
<toggledisplay linkstyle font-size:larger showtext="[+] Afficher le segment clientèle de l'interaction" hidetext="[-] Afficher le segment clientèle de l’interaction">{{ToggleTextWrapper}}
 
Vous pouvez afficher le segment clientèle défini par la paire clé-valeur <tt>SegmentClientèle</tt> de l'interaction à l'aide de la formule suivante.
 
  
'''Formule : Obtenir le segment clientèle'''
+
{{AnchorDiv|AgentSkills}}
 +
==Display Agent Skills==
 +
You can display agent skills using the following formula. The result includes the name and level of each skill the agent has.
 +
 
 +
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 +
<source enclose="div" lang="javascript">
 +
Result = "";
 +
if (Object.Skills != null) {
 +
    for (var i = 0; i < Object.Skills.length; i++) {
 +
        var skill = Object.Skills[i];
 +
        Result += skill.Name + " " + skill.Level +"; ";
 +
    }
 +
}
 +
</source></div>
 +
 
 +
==Display Interaction Properties==
 +
 
 +
Let us say you want to display interaction properties including flow segmentation, ANI, and DNIS. You can use formulas to find the information you need:
 +
[[File:Pulse85105formula2.png|Pulse85105formula2.png]]
 +
 
 +
===Show the Customer Segment of the Interaction===
 +
You can display the customer segment defined by the <tt>CustomerSegment </tt> key-value pair of the interaction by using the following formula.
 +
 
 +
'''Formula: Get Customer Segment'''
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 
<source  enclose="div" lang="javascript">Result = G.GetCustomerSegment(Data.Current_Status.Value);</source></div>
 
<source  enclose="div" lang="javascript">Result = G.GetCustomerSegment(Data.Current_Status.Value);</source></div>
</toggledisplay>
 
</p>
 
<p>
 
<toggledisplay linkstyle font-size:larger showtext="[+] Afficher l'ANI du client" hidetext="[-] Afficher l'ANI du client">
 
{{ToggleTextWrapper}}
 
Vous pouvez afficher l'ANI du client à l'aide de la formule suivante.
 
  
'''Formule : Obtenir l’ANI'''
+
===Show the ANI of the Customer===
 +
You can display the ANI of the customer by using the following formula.
 +
 
 +
'''Formula: Get ANI'''
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 
<source enclose="div" lang="javascript">[Result = G.GetANI(Data.Current_Status.Value);</source></div>
 
<source enclose="div" lang="javascript">[Result = G.GetANI(Data.Current_Status.Value);</source></div>
</toggledisplay>
 
</p>
 
<p>
 
<toggledisplay linkstyle font-size:larger showtext="[+] Afficher la DNIS du client" hidetext="[-] Afficher la DNIS du client">{{ToggleTextWrapper}}
 
Vous pouvez afficher la DNIS du client à l'aide de la formule suivante.
 
  
'''Formule : Obtenir la DNIS'''
+
===Show the DNIS of the Customer===
 +
You can display the DNIS of the customer by using the following formula.
 +
 
 +
'''Formula: Get DNIS'''
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 
<div style="line-height:normal;border:1px dashed #2f6fab;background-color: #F9F9F9;color:black;padding:1em;margin:1em 0;">
 
<source enclose="div" lang="javascript">Result = G.GetDNIS(Data.Current_Status.Value);</source></div>
 
<source enclose="div" lang="javascript">Result = G.GetDNIS(Data.Current_Status.Value);</source></div>
</toggledisplay>
 
</p>
 
|media1=pulse85105formula2.png
 
}}
 
  
{{#anc:What do I do next?}}
+
==What do I do next?==
==Que faire ensuite ?==
+
You might want to learn more about:
Vous pouvez en savoir plus à propos des fonctions suivantes :
+
* [[RTRTemplates|Widget templates]]
* [[RTRTemplates|Modèles de widgets]]
+
* [[RTRStatProperties|Statistic properties]]
* [[RTRStatProperties|Propriétés statistiques]]
+
* [[RTRFunctions|Template function library]]
* [[RTRFunctions|Bibliothèque de fonctions de modèles]]
+
 
  
 
[[Category:V:EZP:DRAFT]]
 
[[Category:V:EZP:DRAFT]]

Version du février 12, 2020 à 00:44

Report Formulas

If you decide that one of your reports needs a different or additional statistic, you can edit the report’s template to make that happen. You can accomplish this by adding a formula to the report template that retrieves the statistic or key performance indicator (KPI) you want.

Since you cannot change the standard templates provided, if you want to change one of the standard reports, just create a clone of the template and make changes in the new template.

Who can create these statistics? If you can create and edit Genesys Pulse templates, you can use formulas.

Important
If you already know how to use the formulas, you can use the function library to help you create your formulas.

Add a Formula

From the statistic detail pane while editing a widget or template, you can create or customize statistics by creating a formula.

The formula uses a javascript-based syntax, which lets you calculate expressions with values given by other statistic and use functions provided by Genesys for more specific calculations. For example, you can calculate the ratio of the calls abandoned to the calls offered in your queue to measure the percentage of abandoned calls in your queue.

Pulse 85105 Formulas2.png

Display Percentages

Let us say you want to display percentages based on two metrics. Just copy the following example using the statistics you want.

In this example, we want to retrieve the percentage of outbound calls out of the total of both inbound and outbound calls. The formula can access any statistic within a template with the following syntax: Data.Statistic-Alias.Value. The formula must return a valid Result value.

In the following formula, we assume the outbound calls are defined by a statistic alias Outbound and the inbound calls are Inbound.

Formula: Calculate a Percentage

if ((Data.Outbound.Value + Data.Inbound.Value) != 0) 
Result = 100 * Data.Outbound.Value / (Data.Outbound.Value + Data.Inbound.Value); 
else Result = 0;

Pulse 85105 Formulas2.png

Display Agent Status KPIs

Let us say you want to display KPIs for agent status. Just use the Current_Status statistic. Pulse85105formula1.png

How the Current_Status Statistic is Defined

The Current_Status statistic is defined by Stat Server options properties. The statistic type ExtendedCurrentStatus returns a specific object that can be further analyzed to provide only the Duration of the object.

[ExtendedCurrentStatus]
Category=CurrentState
MainMask=*
Objects=Agent
Subject=DNAction

You can use formulas to find the information you need:

Show Agent Time in Current State

You can display the agent status duration using the Current_Status statistic.

Formula: Get Status Duration

Result = G.GetStatusDuration(Data.Current_Status.Value);

Show the Reason Code Selected by the Agent

You can display the reason code for the agent status.

Formula: Get Reason Code

Result = G.GetReasonCodes(Data.Current_Status.Value);

If you want to display more user data in addition to the Reason Code, you need to enable the Additional Data property (User Data) of the statistic and apply a formula to filter only the Reason Code from the resulting Current_Status, which contains both the User Data and Reason code.

Formula: Filter only Reason Code

var res = G.GetReasonCodes(Data.Current_Status.Value);
var x = res.split(';');
Result = "";
for (var i = 0; i < x.length; i++) {
    var s = x[i];
    if (s.indexOf("Break") > -1 ||
      s.indexOf("Offline") > -1 ||
      s.indexOf("Training") > -1 ) { Result = s; break; }
}

Formula: Get Reason Code by Media Type (chat in the example below)

function GetNRCode(state) {
	if (state === null || state.type !== "AgentCurrentState")
		return null;

	var res = "";
	var n = state.DNs.length;

	if (n > 0) {
		for (var i = 0; i < n; ++i) {
			var dn = state.DNs[i];

			if (dn.DNType === CFGNoDN && dn.DN === "chat") {
				var actionsLength = dn.Actions.length;
                  
				for (var j = 0; j < actionsLength; j++) {
					if (dn.Actions[j].Action === "NotReadyForNextCall" ) {
						var userDataLength = dn.Actions[j].Data.UserData.length;
                                
						if (userDataLength > 0) {
							for (var k = 0; k < userDataLength; k++) {
                                if (dn.Actions[j].Data.UserData[k].Key === "ReasonCode") {
									res = dn.Actions[j].Data.UserData[k].Value;
                                        
									break;
                                }
                            }
                        }
                    }
                }                   
                    
				break;  
            }
		}
	}

	return res;
}

 Result = GetNRCode(Data.Current_Status.Value);

Formula: Get Reason Code For Voice

function GetVR(state) {
	if (state === null || state.type !== "AgentCurrentState")
		return null;
	
	var res = "";
	var n = state.DNs.length;
	
	if (n > 0) {
		for (var i = 0; i < n; ++i) {
			var dn = state.DNs[i];
			
			if (dn.DNType === 1 && dn.DN !== null) {
				var actionsLength = dn.Actions.length;
				
				for (var j = 0; j < actionsLength; j++) {
					if (dn.Actions[j].Action === "NotReadyForNextCall") {
						var userDataLength = dn.Actions[j].Data.UserData.length;
						
						for (var h = 0; h < userDataLength; h++) {
							if (dn.Actions[j].Data.UserData[h].Key === "ReasonCode") {
								res = dn.Actions[j].Data.UserData[h].Value;
								
								break; 
							}
						}
						
						break;
					}
				}
				
				break;
			}
		}
	}

	return res;
}

Result = GetVR(Data.Current_Status.Value);
Conseil
The formula should be customized according to your environment. Please contact Genesys Customer Care for details.

Show Current Agent State by Media Type

You can display the current agent state by media type.

Formula - Get agent state by media type

Result = G.GetAgentNonVoiceStatus(Data.Current_Status.Value, 'email');

Display Agent Skills

You can display agent skills using the following formula. The result includes the name and level of each skill the agent has.

Result = ""; 
if (Object.Skills != null) {
    for (var i = 0; i < Object.Skills.length; i++) {
        var skill = Object.Skills[i];
        Result += skill.Name + " " + skill.Level +"; ";
    }
}

Display Interaction Properties

Let us say you want to display interaction properties including flow segmentation, ANI, and DNIS. You can use formulas to find the information you need: Pulse85105formula2.png

Show the Customer Segment of the Interaction

You can display the customer segment defined by the CustomerSegment key-value pair of the interaction by using the following formula.

Formula: Get Customer Segment

Result = G.GetCustomerSegment(Data.Current_Status.Value);

Show the ANI of the Customer

You can display the ANI of the customer by using the following formula.

Formula: Get ANI

[Result = G.GetANI(Data.Current_Status.Value);

Show the DNIS of the Customer

You can display the DNIS of the customer by using the following formula.

Formula: Get DNIS

Result = G.GetDNIS(Data.Current_Status.Value);

What do I do next?

You might want to learn more about:

Comments or questions about this documentation? Contact us for support!