getScriptVariable
Gets every variable that can be used in a script page’s text control. For example {agent.name}.
Description
vcc.getScriptVariable(name: string): string|null
List of available variables:
- id
- numberid
- projectid
- project.id
- project.name
- global.commission
- global.price
- agent.name
- agent.username
- agent.email
- agent.status
- agent.extension
- agent.userid
- agent.teams_name
- agent.group_name
- source
- destination
- global.ccphone
- global.clientphone
- global.dtmf
- global.uuid
- global.shortid
- contact.name
- contact.title
- contact.phone
- contact.email
- global.ivr.(.+)$: equivalent withgetChannelVariable
- ^agent.custom.(w*)$: return a customField
Parameters
name
The name of the variable.
Return values
The value of the variable, or null if there is no source.
Example
You want to insert the agent name into a field.
$().onLoad = function() {
vcc.setFieldValue('agent', vcc.getScriptVariable('agent.name'));
};
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.