Article Details
Id: | 10851 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 1.06.06 |
Opened: | 17/01/2013 |
Closed: | 21/01/2013 |
Released: | 29/01/2013 |
Job: | J011011 |
Workflows; Log details now available to BeforeItemAction and AfterItemAction Script events for Log and Outgoing Communication items
The Log details entered when actioning a Log and Outgoing Communication item from the Task Manager are now available to the BeforeItemAction and AfterItemAction Workflow Type Script events.
The following example shows how to access the Log details:
Dim LogCreationDetails As finLogCreationDetails
Select Case eventId
Case "BeforeItemAction"
LogCreationDetails = DirectCast(otherParameters.GetObject("LogCreationDetails"), finLogCreationDetails)
If LogCreationDetails IsNot Nothing Then
finBL.DebugPrint(LogCreationDetails.Subject)
End If
Case "AfterItemAction"
LogCreationDetails = DirectCast(otherParameters.GetObject("LogCreationDetails"), finLogCreationDetails)
If LogCreationDetails IsNot Nothing Then
finBL.DebugPrint(LogCreationDetails.LogSeverityId)
End If
End Select
NOTE: When actioning one of these items from the Workflows form, Log details are not available to these events since the Log is simply created and then presented to the User for editing.