Article Details
Id:12969
Product:finPOWER Connect
Type:NEW
Version:2.03.00
Opened:05/06/2015
Closed:05/06/2015
Released:09/07/2015
Job: J015639

Log objects; When generating Email and SMS using the business layer methods, the Script is now passed the Log object in eventArgs

The following Log objects have GenerateMessageEmail and GenerateMessageSms methods that can be used by Script to automatically populate the ExtendedData property:

  • finAccountLog
  • finAccountAppLog
  • finClientLog

The Document 'GenerateMessage' Script event is now passed an additional "Log" entry in the eventArgs Key/Value List when called from one of these methods. This allows the Script to access the Log if required.

NOTE: The 'GenerateMessage' Document Script event can be called from many different situations so any Script code should first check that a "Log" entry exists in eventArgs and also that it is of the correct data type before attempting to use it. For example, if generated from a Workflow, the Workflow Item (and other information) is available, but not the Log. If generated from the "Send Document" action (e.g., the Create Account Document wizard), the message is entered by the User and can then be optionally updated by the Document Script. There is no Log available at this point hence one is not passed to the Script.