JavaScript Popping - ImmediateIf the order in which a series of activities are completed isn't important, then the activities can be popped immediately. This causes a new activity to be created with the popped Workflow in it, and the agent is then switched immediately into this new activity without closing any existing activities.
Unlike a URL pop, any existing activity is merely suspended rather than abandoned, and the created activities can be freely switched between using the activity list in the top-right corner of the Desktop. For example, this could be used to have an incoming call pop over the top of an in-progress low-priority email responder, with the agent able to handle the call and then return to the email when ready.
Important: This article covers a function that is intended for use by a plugin, and cannot be used from within a Workflow run as other Helper Functions can be. It is documented here for completeness.
How ToThe syntax for popping via JavaScript is:
Desktop.Pop.CampaignByName(campaign, reference, data, connector, connectorType, restartScript);
The available parameters for this are:
Example for SQL Plugin:
Desktop.Pop.CampaignByName("tbl_CustomerData", "4074");
Example for Integration - Generic:
This then immediately pops our Workflow over any current activity, and populates the values "Joe Bloggs" and "01234 567890" into [var_csCallerName] of the popped Workflow.
NotesUpon exiting all JavaScript-queued Workflows, the agent will be returned to the Desktop.
|