ISProfile.LoadMessages

Description

This function returns messages by the selected parameter.

Syntax

object.LoadMessages(aParams)

Part Attribute Type Description
object Required
The object always implements the ISProfile interface
aParams In, Required
The object that defines conditions for filtering

Return Value

ISMessagesList

Returns messages by the selected parameter.

Example

Display the number of messages by the selected parameter, their subjects and privacies.

Dim aProvider
Dim aParams
Dim aMessages
Dim aMessage
Dim aInfo
Dim i

Set aProvider = Profile.LoadProvider("ADMIN")
set aParams = Profile.CreateLoadMessagesParams(aProvider.Id)
aParams.ProviderId = aProvider.Id
aParams.SentAfter = #12/09/2018#
set aMessages = Profile.LoadMessages(aParams)

aInfo = "Messages Count = " & aMessages.Count
for i = 0 to aMessages.Count - 1  
  set aMessage = aMessages.Item(i)
  aInfo = aInfo & vbNewLine & aMessage.Subject & " --- " & aMessage.Privacy
next 

Profile.MsgBox(aInfo)
Note:

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

See also

Version information

Added in v7.8.0