Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vendors:cisco:wxcc:flow [2023/05/16 11:51] – [SLICE] gerardorourkevendors:cisco:wxcc:flow [2025/06/11 15:42] (current) – [Global Variables] gerardorourke
Line 31: Line 31:
 ===== IF / ELSEIF / ELSE ===== ===== IF / ELSEIF / ELSE =====
  
-Below is NOT working in CASE element? Not sure why at this stage....+Note when using an expression in a CASE element - do **not** have any carrier returns. Have the expression all in one line - as per below examples. While it might validate successfully with the expression tester - it fails in the CASE element.
 <code> <code>
-{% if (Global_EWT_minutes == 1) %} +{% if (Global_EWT_minutes == 1) %}minute{% elseif (Global_EWT_minutes > 1) and (Global_EWT_minutes <= 60) %}minutes{% else %}disable{% endif %}
-"minute" +
-{% elseif (Global_EWT_minutes > 1) and (Global_EWT_minutes <= 60) %} +
-"minutes" +
-{% else %} +
-"disable" +
-{% endif %}+
 </code> </code>
  
Line 51: Line 45:
 toIndex: 0-based and exclusive\\ toIndex: 0-based and exclusive\\
 <code>{{"123456789012345"|slice(8,12)}} => 9012</code>  <code>{{"123456789012345"|slice(8,12)}} => 9012</code> 
 +
 +
 +===== DB Connector =====
 +
 +  *https://github.com/CiscoDevNet/webex-contact-center-dbconnector
 +
 +
 +===== Global Variables =====
 +
 +Update the default value in a Global Variable so you can reference it and check its value in another call session / script\\
 +
 +  *  https://developer.webex-cx.com/documentation/global-variables/v1/update-global-variables
 +
 +===== More Pebble Examples =====
 +
 +==== In Condition Node====
 +ANI starts with is one of the two phone numbers below
 +<code>
 +{{(NewPhoneContact.ANI=='+353858769707') or (NewPhoneContact.ANI=='+353851231234') }}
 +</code>
 +
 +ANI starts with '+3538'
 +<code>
 +{{(NewPhoneContact.ANI|slice(0,5)) == '+3538'}}
 +</code>
  • vendors/cisco/wxcc/flow.1684234307.txt.gz
  • Last modified: 2023/05/16 11:51
  • by gerardorourke