Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ActionableNotification Class
Namespace
Example
1Messaging.ActionableNotification notification =
2new Messaging.ActionableNotification.Builder()
3.withNotificationTypeId('0MLXXXXXXXXXXXX4AC')
4.withActionIdentifier('testAction')
5.withRecipientId('005XXXXXXXXXXXX')
6.withSenderId('005XXXXXXXXXXXX')
7.withTargetId('500XXXXXXXXXXXXYAI')
8.withTargetPageRef('/lightning/r/Case/500XXXXXXXXXXXXYAI/view')
9.build();ActionableNotification Methods
The following are methods for ActionableNotification.
getActionIdentifier()
This actionIdentifier must belong to the action group associated with the custom notification.
Signature
public String getActionIdentifier()
Return Value
Type: String
getNotificationTypeId()
Signature
public String getNotificationTypeId()
Return Value
Type: String
getRecipientId()
Signature
public String getRecipientId()
Return Value
Type: String
getSenderId()
Signature
public String getSenderId()
Return Value
Type: String
getTargetId()
Signature
public String getTargetId()
Return Value
Type: String
getTargetPageRef()
Signature
public String getTargetPageRef()
Return Value
Type: String