From Bright Pattern Documentation
Line 1: | Line 1: | ||
<translate>= Post Variable= | <translate>= Post Variable= | ||
− | + | 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 == |
− | + | === Syntax === | |
+ | postVariable(name, value);'' | ||
− | == Parameters == | + | === Parameters === |
− | '' | + | {|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 | ||
+ | |} | ||
− | |||
− | |||
</translate> | </translate> |
Revision as of 23:05, 9 September 2019
<translate>= 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 |
</translate>