For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
Article

defineAction

API reference for defineAction: parameters, properties, and return types.

Use with AI:Rippling AI ChatGPT Claude Cursor

Defines an action on a custom object.

import { defineAction } from '@rippling/rippling-sdk';

Properties​

PropertyRequiredTypeDescription
apiNameRequired`${string}__c`—
functionRequiredFunctionReference

Function invoked by the action.

nameRequiredstring

Display name shown in the list or detail view.

visibilityPreferencesRequiredCustomObjectActionVisibilityPreference[]

Views where the action is shown.

Complete options type

Parameters​

ParameterRequiredTypeDescription
objectRequiredAnyCustomObjectDefinition—
TypeScript signature
defineAction(object: ObjectReference, props: DefineActionProps): CustomObjectAction;

Returns​

CustomObjectAction

Availability​

CapabilitySupport
Pull into a projectSupported
Runtime operationsNot available for this helper