📚 SAP Business One SDK Help

GetAlertManagementList Method
See Also  Example
pAlertManagementParams

The AlertManagementParams Identification key that function as a filter.

Description

Returns a AlertManagementParamsCollection object, a data collection of all the instances of AlertManagementParams Identification keys that match a given AlertManagementParams identification key (Code, Name and Type).

Syntax

Visual Basic
Public Function GetAlertManagementList( _
   ByVal pAlertManagementParams As AlertManagementParams _
) As AlertManagementParamsCollection

Parameters

pAlertManagementParams

The AlertManagementParams Identification key that function as a filter.

Example

Get a list of System alerts
GetAlertList (Visual Basic)Copy Code
Dim oAlertManagementParamsCollection As AlertManagementParamsCollection
Dim oAlertManagementParams As AlertManagementParams

'Assuming that oAlertManagementService is already defined!

'get Alert Params
oAlertManagementParams = oAlertManagementService.GetDataInterface(AlertManagementServiceDataInterfaces.atsdiAlertManagementParams)

'set the type of the alarm to system
oAlertManagementParams.Type = AlertManagementTypeEnum.att_System

'get collection of system alerts
oAlertManagementParamsCollection = oAlertManagementService.GetAlertManagementList(oAlertManagementParams)

See Also