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.
ActionResult.Builder Class
Namespace
Usage
See the example for the NotificationActionHandler Interface.
ActionResult.Builder Methods
The following are methods for ActionResult.Builder.
build()
Signature
public Messaging.ActionResult build()
Return Value
Type: Messaging.ActionResult
withErrorCode(errorCode)
Signature
public Messaging.ActionResult.Builder withErrorCode(Messaging.ActionError errorCode)
Parameters
-
errorCode:
Type: Messaging.ActionError
The error message.
Return Value
withMessage(message)
Signature
public Messaging.ActionResult.Builder withMessage(String message)
Parameters
-
message:
Type: String
The notification message.
Return Value
withSuccess(success)
Signature
public Messaging.ActionResult.Builder withSuccess(Boolean success)
Parameters
-
success:
Type: Boolean