The following example illustrates a trigger specification via Integration > CRM Trigger.
In the above image:
The following example shows a PHP script invoked by the Virtual Contact Center CRM trigger illustrated in the above image.
/* acct_add.php – log creation of new accounts*/
$fp = fopen('myfile.txt','a+');
$fp = fopen('myfile.txt','w');
$now = date( "[m/d/Y H:i:s] – ", time());
fwrite($fp, $now.'AccountID: '.$AccountID." – action: CREATE CUSTOMER\n");
The script reads the account ID referenced by an agent interaction, and writes the account ID to a file called myfile.txt.
Open topic with navigation