Article Details
Id: | 10123 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 1.05.07 |
Opened: | 07/06/2012 |
Closed: | 07/06/2012 |
Released: | 15/06/2012 |
Job: | J009776 |
Documents; Script can now specify Email or SMS recipients for Workflow Items
The 'GenerateMessage' event of a Document Script can now specify overriding Email or SMS recipients to use when creating a Document via actioning a Workflow Item.
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