From Bright Pattern Documentation
Jump to: navigation, search
 
 
Line 1: Line 1:
 
<translate>= Post Variable=
 
<translate>= Post Variable=
This function enables a variable to be pushed to a scenario as if the [[scenario-builder-reference-guide/SetVariable|Set Variable]] block is included; the variable is then available in scenarios and [[contact-center-administrator-guide/WorkflowEntries|workflows]].
+
Enables a variable to be pushed to a scenario as if the [[scenario-builder-reference-guide/SetVariable|Set Variable]] block is included; the variable is then available in scenarios and [[contact-center-administrator-guide/WorkflowEntries|workflows]].
  
== Syntax ==
+
== Request ==
''postVariable(name, value);''
+
=== Syntax ===
 +
postVariable(name, value);''
  
== Parameters ==
+
=== Parameters ===
''name'' String containing the name of the desired variable
+
{|border="1" style="border-collapse:collapse" cellpadding="5"
 +
| '''Parameter'''
 +
| '''Type'''
 +
| '''Optional/Required'''
 +
| '''Description'''
 +
|-
 +
| name
 +
| String
 +
| Required
 +
|The name of the desired variable
 +
|-
 +
| value
 +
| String
 +
| Required
 +
| The resulting value of the variable
 +
|}
  
''value'' – String containing the resulting value of the variable
 
  
  
  
  
<center>[[desktop-javascript-api-specification/SetDispositionByName|< Previous]]  |  [[desktop-javascript-api-specification/SetReportingCustomField|Next >]]</center>
 
 
</translate>
 
</translate>

Latest revision as of 23:05, 9 September 2019

• 5.2 • 5.3 • 5.8

Post Variable

Enables a variable to be pushed to a scenario as if the Set Variable block is included; the variable is then available in scenarios and workflows.

Request

Syntax

postVariable(name, value);

Parameters

Parameter Type Optional/Required Description
name String Required The name of the desired variable
value String Required The resulting value of the variable



< Previous | Next >