Defines a custom setting with a value matching its data type. Supply both permission groups when creating a new setting.
import { defineCustomSetting } from '@rippling/rippling-sdk';
Properties
| Property | Required | Type | Description |
|---|---|---|---|
apiName | Required | string | Stable, nonempty API name used to reference this setting. |
dataType | Required | "STRING" | "SECRET" | "NUMBER" | "BOOLEAN" | Use STRING or SECRET with a string value or null. Use NUMBER with a safe integer, a decimal string or null. Use BOOLEAN with true, false or null. |
name | Required | string | Display name shown for this setting. |
value | Required | null | string | number | boolean | Text value for STRING or SECRET, or null. Pass a safe integer as a number, or pass null. Use a string for decimals or integers beyond JavaScript's safe integer range. Boolean value (true or false), or null. |
manageGroup | Optional | null | DefinedGroup | Group whose members can view and edit the setting and manage its access. Supply both viewGroup and manageGroup when creating a new setting. |
viewGroup | Optional | null | DefinedGroup | Group whose members can view the setting and include it in functions. Supply both viewGroup and manageGroup when creating a new setting. |
Match properties to dataType
| dataType | value |
|---|---|
"STRING" | "SECRET" | string | null |
"NUMBER" | string | number | null |
"BOOLEAN" | boolean | null |
TypeScript signature
defineCustomSetting(props: DefineCustomSettingProps): DefinedCustomSetting;
Returns
DefinedCustomSetting
Availability
| Capability | Support |
|---|---|
| Pull into a project | Supported |
| Runtime operations | Not available for this helper |