Difference between revisions of "WorkMan Agent 3 - Client Scripter"

From WorkManSoft Wiki
Jump to navigationJump to search
 
Line 24: Line 24:
  
 
   begin
 
   begin
     openURL('http://www.larsson.tc?' +
+
     openURL('http://www.larssonconsulting.net/test/agentparams.php?' +
 
           'callerid=' + getCallInfo('CallerNum') +           
 
           'callerid=' + getCallInfo('CallerNum') +           
 
           '&callername=' + getCallInfo('CallerName') +
 
           '&callername=' + getCallInfo('CallerName') +
Line 33: Line 33:
  
  
Link to a demopage: [http://www.larssonconsulting.net/test/agentparams.php?callerid=123&calledid=333]
+
Link to a demopage: [http://www.larssonconsulting.net/test/agentparams.php?callerid=123&calledid=333 http://www.larssonconsulting.net/test/agentparams.php?callerid=123&calledid=333]

Latest revision as of 08:14, 14 May 2013

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