/ Forums / Advansys Formativ / Formativ Creator / API not matching documentation / Reply To: API not matching documentation

#5577
Support 3
Participant

ComposingItem is a Formativ wrapper around draft message. Draft message is the composing message which is not sent/saved. Its lets the developer to easily access the draft message properties. In GroupWise, you can access the message properties using the Token API, Object API and SOAP API (GroupWise 7 onwards). Some message properties, you can only access through a specific API (For example, Token API to access the draft message recipients, etc)

Please see the sample code below of the Token and Object API to access the recipients. As stated below, you can use the Token API to access the recipients for the draft and standard message (i.e. received, sent, etc). Object API to access the recipients of the standard message.

Token API: http://developer.novell.com/documentation/gwtoken/index.html?gwtokens/data/hj8ej8g5.html.
Get the recipients from the draft and standard message (i.e. received, sent, etc)

  iMsgID = groupwise.ItemMessageIDFromView

  ' TO
  msgbox groupwise.ItemGetText(iMsgID, 0)
  ' CC
  msgbox groupwise.ItemGetText(iMsgID, 2)
  ' BC
  msgbox groupwise.ItemGetText(iMsgID, 3)

Object API: http://developer.novell.com/documentation/gwobjapi/index.html?gwobjenu/data/h7ikbsqg.html
Get the recipients from the draft and standard message.

  Set oMsg = Client.ClientState.CommandMessage

  for x = 1 to oMsg.Recipients.Count
    set oRecipient = oMsg.Recipients.Item(x)
    msgbox oRecipient.EmailAddress & vbcrlf & oRecipient.TargetType
    set oRecipient = nothing
  next

  set oMsg = nothing

Hope this helps.

Regards,
Advansys Support