getRecordAlerts(parentId, whatId)

Retrieve a list of active record alerts.

54.0

No

public static ConnectApi.RecordAlertCollectionRepresentation getRecordAlerts(String parentId, String whatId)

parentId

Type: String

The related parent record ID on which a record alert is created.

whatId

Type: String

The Salesforce object record ID on which a record alert is created.

Type: ConnectApi.RecordAlertCollection

To fetch alerts that have parentId

To fetch alerts that have whatId

To fetch alerts that have parentId and whatId