Article Details
Id: | 9947 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 1.05.05 |
Opened: | 16/04/2012 |
Closed: | 16/04/2012 |
Released: | 08/05/2012 |
Job: | J009434 |
Documents; Script can now specify Email or SMS recipients for Create Document wizard
The 'GenerateMessage' event of a Document Script can now specify the default Email or SMS recipients to display when creating a Document via the Create Document wizard (e.g. Create Account Document).
Sample code is shown below:
' Handle Events
Select Case eventId
Case "GenerateMessage"
' When generating log-based Email, SMS or Log type Documents, this event allows you to generate the message.
' Optionally, set the 'To', 'CC' and 'BCC' fields on the 'Create Document' form for Email and 'Phone' for SMS
returnValues.SetString("to", "email1; email2")
returnValues.SetString("cc", "ccemail1; email2")
returnValues.SetString("bcc", "bccemail1; email2")
returnValues.SetString("phone", "sms1; sms2")
End Select