You can add custom functions to a new file WWGUDFunctions.xxx (where xxx specifies the target language). Then you must add the function to Genesys Agent Scripting.
Select File > User Defined Functions to open the User Defined Function List dialog box.
Clicking Add opens the User Defined Function Properties dialog box.
Enter the name of the User Defined Function here.
This field contains a description of the function.
This field describes the format of the data returned by the function. The user may select String, Number, Boolean, or DateTime.
The template is generated based on the name and parameters assigned to the function.
Parameters refer to the information passed into the function. In order to create the parameters, you must click the parameters button. This opens the User Defined Function Parameter List dialog box.
Clicking Add opens the Parameter dialog box.
This number indicates the order in which the parameters will be passed to the function.
This is the name of the parameter being passed to the function.
This field contains a description of the parameter.
This field describes the format of the data passed to the function. You may select String, Number, Boolean, or DateTime.
In order to edit existing parameters, you should select the parameter to be edited from the list and click Edit. This will open the Parameter Properties dialog box.
This option allows you to delete existing parameters.
Clicking Delete All will delete all of the parameters that have been defined for the specified User Defined Function.
In order to edit existing user defined functions, you should select the function to be edited from the list and click Edit. This opens the User Defined Function Properties dialog box.
This option allows you to make a copy of a parameter. Click Copy and the following dialog box opens.
This option allows you to delete a user defined function.