NEW1.06.06 · Released 29 January 2013
NEWfinPOWER Connect
Released in
1.06.06
29 January 2013
  1. Opened17 Jan
  2. Closed21 Jan
  3. Released29 Jan
Article 10851 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.