Learn about CRM action components for use in UI extensions.
@hubspot/ui-extensions/crm
.
onError
callback.
Each action requires an actionType
and actionContext
.
actionType
: the type of action. See the available actions section below.actionContext
: the CRM object and record context required for the action to be performed. For example, to include an action to open a preview sidebar for a specified record, you’ll need to provide the record’s objectTypeId
and objectId
in actionContext
. See the available actions section for more information about what’s required for each action.