From Bright Pattern Documentation
< 5.8:Desktop-javascript-api-specification
Revision as of 04:13, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 5.19 • 5.2 • 5.3 • 5.8

postVariable

This function 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.

When invoking the postVariable method for a variable that starts with ActivityHistory, Agent Desktop memorizes the value of the variable to post it in activity history (see the Form Builder Reference Guide, section How to Configure Activity History Forms for more information on mapping activity history values). If an activity history field was marked for export in campaign results, it will be possible to export it with campaign results. The data is retained in Agent Desktop until changed or the interaction is completed. If a form is displaying that data, the form is also updated to reflect the new value. If the data changes in the form, it changes the value to be submitted.

Syntax

postVariable(name, value);

Parameters

Parameter Data Type Description
name String The name of the desired variable
value String The resulting value of the variable
< Previous | Next >