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

defineCustomField

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

Use with AI:Rippling AI ChatGPT Claude Cursor

Defines a custom field on a native or custom object.

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

Properties​

PropertyRequiredTypeDescription
apiNameRequired`${string}__cfv2`—
dataTypeRequiredCustomFieldDataType—
modelNameRequiredstring—
modelRqlNameRequiredstring—
nameRequiredstring—
sectionRequiredDefinedCustomFieldSection<NoInfer<TModel>>—
fieldWriteAccessRequired in some variants"NO_ACCESS" | null | "ADMIN_ACCESS" | "ADMIN_AND_EMPLOYEE_ACCESS" | "EMPLOYEE_ACCESS"—
rqlDefinitionFormulaRequired in some variantsstring | null—
applicableGroupOptionalnull | GroupConfig | Record<string, unknown> & { type: typeof COMPONENT_TYPE; name: string; }—
applicableGroupIdOptionalnull | string—
collectDuringOptionalnull | "ONBOARDING" | "NONE" | "HIRING" | "TERMINATING"—
defaultValueOptionalnull | { value: string; rqlDefinitionFormula?: never; } | { value?: never; rqlDefinitionFormula: string; }—
descriptionOptionalnull | string—
displayOrderOptionalnull | number—
fieldPermissionClassificationOptionalnull | "BASIC_PERSONAL_INFO" | "PERSONAL_INFO" | "SENSITIVE_PERSONAL_INFO" | "BASIC_EMPLOYMENT_INFO" | "EMPLOYMENT_INFO" | "SENSITIVE_EMPLOYMENT_INFO"—
fieldReadAccessOptionalnull | "ALL_ACCESS" | "ADMIN_ACCESS" | "ADMIN_AND_EMPLOYEE_ACCESS"—
requiredOptionalnull | boolean—
tipOptionalnull | string—

Requirements marked “in some variants” depend on the selected union member.

Complete options type

TypeScript signature
defineCustomField<const TModel extends string>(props: DefineCustomFieldProps<TModel>): CustomField<TModel>;

Returns​

CustomField<TModel>

Availability​

CapabilitySupport
Pull into a projectSupported
Runtime operationsNot available for this helper