Article Details
Id:10268
Product:finPOWER Connect
Type:NEW
Version:1.06.00
Opened:04/07/2012
Closed:04/07/2012
Released:01/08/2012
Job: J009938

Logs now validate Email and SMS details are specified when saving

Attempting to save one of the following business layer objects where the ExtendedType is set to 'Email' or 'SMS' will fail if the ExtendedData does not contain the correct information:

  • finAccountLog
  • finClientLog
  • finSecurityStmtLog
  • finSecurityStmtItemLog
  • finUserLog

The ExtendedData property should be specified as a Key/Value List and for an SMS must contain the following String values:

  • Phone - a semi-colon separated list of recipient phone numbers
  • Message

For an Email, it must contain:

  • To, CC or BCC
  • Subject

The following is an example of creating an Account Log that contains SMS details (this is not a Document Log and so is not publishable, the SMS details are stored only for reference):

Dim AccountLog As finAccountLog

AccountLog = gISBL.CreateAccountLog()
With AccountLog
  .AccountId = "L10000"
  .Subject = "TEST SMS"
  .ExtendedType = isefinLogExtendedType.Sms
  .ExtendedData = gISBL.DocumentFunctions.GetLogSmsExtendedData("MyPhoneNumber", "my message")

  If .Save() Then
    ' OK
  Else
    ' Failed
  End If
End With