ISMessage.Received

Description

The time and the date when the message was received.

Syntax

object.Received

Part Attribute Type Description
object Required
The object always implements the ISMessage interface
Restriction: This property is readonly.

Return Value

DateTime

Example

Display the text of the message, the time and date when it was received.

Dim aMes
Dim aMessageRecipients
Dim aPatient

Set aMes = Profile.CreateMessage
aMes.Text = aMes.AddText("Hello! Come to my birthday party!")
aMes.Subject = "Birthday party"     
set aMessageRecipients = aMes.Recipients
set aPatient = Profile.SelectPatient
if aPatient.Email <> "" then 
  aMessageRecipients.AddPatient(aPatient)
else  
  Profile.MsgBox("The massage cannot be sent, because the patient has no email")
  exit sub
end if  
  
aMes.Send
Profile.MsgBox("The message with the text '" & aMes.Text &_
  "' was received on " & aMes.Received)
Note:

In Profile Client v8 on User Interface Received Messages can be found in Organisation > Work Centre > Communication > Email > Inbox.

Version information

Added in v7.8.0