BatchJobAlerts::saveAlerts Method
Saves a batch job alert rule into the BatchJobAlerts table.
Syntax
server public static void saveAlerts(RecId batchJobId, Map alertsData)
Run On
Server
Parameters
- batchJobId
Type: RecId Extended Data Type
The job ID to which the alert belongs.
- alertsData
Type: Map Class
Contains a list of structs that have alerts subscriptions. See the documentation for the addAlertToMap function in the BatchJobAlerts table.
Remarks
See the documentation for the addAlertToMap function for information about how to construct the input map from the BatchJobAlerts table.