WorkMan Agent 3 - Client Scripter

From WorkManSoft Wiki
Jump to navigationJump to search

About

Client scripter is a new powerful feature that allows you to customize your own environment so that it can integrate with your own specific business systems. The first version uses Pascal-script to perform scriptactions but more scriptengines will be supported in the future.

Deployment

TBA

Integration with Sugar CRM

By default Sugar CRM is tightly integrated so the script AGENT:SUGARCRMFLASH calls a function titled showSugarCRMFlash that performs all action that is needed.

 begin
   showSugarCRMFlash;
 end.


Examples

Popping a webpage

Valid from v 3.0.1.4. The getCallInfo-function fetches various callinformation and openURL opens the webpage. The digit 1 states what windowstate e.g. SW_NORMAL (see WorkMan Client Script

 begin
   openURL('http://www.larssonconsulting.net/test/agentparams.php?' +
         'callerid=' + getCallInfo('CallerNum') +          
         '&callername=' + getCallInfo('CallerName') +
         '&calledid=' + getCallInfo('CalledNum') +
         '&callername=' + getCallInfo('CalledName') +
         , 1);
 end.


Link to a demopage: http://www.larssonconsulting.net/test/agentparams.php?callerid=123&calledid=333