Defines an action on a custom object.
import { defineAction } from '@rippling/rippling-sdk';
Properties
| Property | Required | Type | Description |
|---|---|---|---|
apiName | Required | `${string}__c` | — |
function | Required | FunctionReference | Function invoked by the action. |
name | Required | string | Display name shown in the list or detail view. |
visibilityPreferences | Required | CustomObjectActionVisibilityPreference[] | Views where the action is shown. |
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
object | Required | AnyCustomObjectDefinition | — |
TypeScript signature
defineAction(object: ObjectReference, props: DefineActionProps): CustomObjectAction;
Returns
CustomObjectAction
Availability
| Capability | Support |
|---|---|
| Pull into a project | Supported |
| Runtime operations | Not available for this helper |