ISLoadMessagesParams.ProviderID

Description

ID of the provider.

Syntax

object.ProviderID

Part Attribute Type Description
object Required
The object always implements the ISLoadMessagesParams interface

Return Value

int

Example

Display the number of messages loaded on the basis of the selected filter, their subjects and privacies.

Dim aProvider
Dim aFilter
Dim aMessages
Dim aMessage
Dim aInfo
Dim i

Set aProvider = Profile.LoadProvider("ADMIN")
set aFilter = Profile.CreateLoadMessagesParams(aProvider.Id)
aFilter.Status = 1 'Outbox 
set aMessages = Profile.LoadMessages(aFilter)

aInfo = "The number of the messages for the provider with Id " & aFilter.ProviderId & " is " & 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 ID of the provider cannot be found, but Messages can be found in Organisation > Work Centre > Communication > Email.

Version information

Added in v7.8.0