Retrieve record alerts by both the Salesforce record ID and the related parent ID.
This method aggregates alerts associated with PersonAccount and FinancialAccount. For example, getRecordByWhatId on PersonAccount returns all alerts related to the person account, all alerts related to the person’s financial accounts, and all alerts related to financial account transactions for each financial account.
Note
It returns alerts in the following basic structure for whatId and parentId.
What Id
Parent Id
Subject
Description
Person AccountId
null
Text1
Text2
Financial AccountId
null
Text3
Text4
Financial TransactionId
Financial AccountId
Text5
Text6
Signature
public List<fscwmgen.RecordAlertInfo> getAlertsByWhatIdAndParentId(String var1, String var2)