When using the e-Work Integration Wizard to call a function or sub in a server-side script, the function or sub doesn't appear in the 'script call' drop-down. If the code is created manually, an error is generated when the Engine attempts to call the function.
As an example, the e-Work function %Script is correctly used to call the sub MailMergeTest() as follows:
%Script(VBScript,,%Procedure.Name,%MapName,"MailMergeTest")
The server-side script contains the following sub, which incorrectly calls the e-Work Print() function:
Sub MailMergeTest()
ework.Print("C:\\Temp\\eworkMailMergeTest.doc",ework.FolderId,"","C:\\Temp\\temp.doc")
End Sub
When the Engine attempts to execute %Script(VBScript,,%Procedure.Name,%MapName,"MailMergeTest"), it will fail, and an error will be generated on both the client and Engine server.