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

From WorkManSoft Wiki
Jump to navigationJump to search
(Created page with "== 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 fir...")
 
 
(2 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
     showSugarCRMFlash;
 
     showSugarCRMFlash;
 
   end.
 
   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 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