App APIs return configuration from the live app. To read configuration from an app in the test environment, ensure you check
kintone.app.isTestEnvironment() first.App information
kintone.app.get()
kintone.app.get()
Returns information about the current app.FunctionParametersNone.Return value
Example
| Property | Type | Description |
|---|---|---|
id | string | The app ID. |
name | string | The app name. |
description | string | The app description. |
spaceId | string | null | The space ID the app belongs to, or null. |
threadId | string | null | The thread ID the app belongs to, or null. |
kintone.app.getId()
kintone.app.getId()
Returns the ID of the current app.FunctionParametersNone.Return value
Example
| Type | Description |
|---|---|
number | null | The app ID, or null if not available on the current page. |
kintone.app.isTestEnvironment()
kintone.app.isTestEnvironment()
Returns whether the current page is using the app’s test environment (preview mode).FunctionParametersNone.Return value
Example
| Type | Description |
|---|---|
boolean | true if running in the test environment; false otherwise. |
kintone.app.isMaintenanceMode()
kintone.app.isMaintenanceMode()
Returns whether the app is currently in maintenance mode.FunctionParametersNone.Return value
Example
| Type | Description |
|---|---|
boolean | true if the app is in maintenance mode; false otherwise. |
kintone.app.getPermissions()
kintone.app.getPermissions()
Returns the current user’s permissions for the app.FunctionParametersNone.Return value
Example
| Property | Type | Description |
|---|---|---|
hasReadPermission | boolean | true if the user can view records in the app. |
hasAddPermission | boolean | true if the user can create new records. |
hasEditPermission | boolean | true if the user can edit records. |
hasDeletePermission | boolean | true if the user can delete records. |
hasImportPermission | boolean | true if the user can import records. |
hasExportPermission | boolean | true if the user can export records. |
kintone.app.getIcons()
kintone.app.getIcons()
Returns URLs for the app’s icon images.FunctionParametersNone.Return value
Example
| Property | Type | Description |
|---|---|---|
small | string | URL of the small app icon. |
medium | string | URL of the medium app icon. |
large | string | URL of the large app icon. |
Form configuration
kintone.app.getFormFields()
kintone.app.getFormFields()
Returns the form field definitions for the current app.FunctionParametersNone.Return valueReturns an object whose keys are field codes. Each value is a field definition object.
Example
| Property | Type | Description |
|---|---|---|
type | string | The field type (e.g., "SINGLE_LINE_TEXT", "NUMBER", "DATE"). |
code | string | The field code. |
label | string | The field label. |
required | boolean | Whether the field is required. |
noLabel | boolean | Whether the field label is hidden. |
kintone.app.getFormLayout()
kintone.app.getFormLayout()
Returns the form layout for the current app, describing the visual arrangement of fields.FunctionParametersNone.Return valueReturns an array of layout row objects. Each row contains field elements with their type and field code.
Example
| Property | Type | Description |
|---|---|---|
type | string | Layout element type: "ROW", "SUBTABLE", or "GROUP". |
fields | array | Array of field layout elements within the row. |
Views
kintone.app.getView()
kintone.app.getView()
Returns the settings of the view currently displayed in the record list.FunctionParametersNone.Return value
Available pages
| Property | Type | Description |
|---|---|---|
id | string | The view ID. |
type | string | The view type: "LIST", "CALENDAR", or "CUSTOM". |
name | string | The view name. |
builtinType | string | null | For built-in views, the type identifier; otherwise null. |
- Record list
kintone.app.getViews()
kintone.app.getViews()
Returns all views configured for the current app.FunctionParametersNone.Return valueReturns an object whose keys are view names. Each value is a view settings object with the same shape as the return value of
kintone.app.getView().Available pages- Record list
Queries
kintone.app.getQueryCondition()
kintone.app.getQueryCondition()
Returns the filter condition string from the current record list view query, without the ParametersNone.Return value
Available pages
ORDER BY, LIMIT, or OFFSET clauses.Function| Type | Description |
|---|---|
string | null | The filter condition (e.g., "Status = \"Open\""), or null if not available. |
- Record list
kintone.app.getQuery()
kintone.app.getQuery()
Returns the full query string for the current record list, including ParametersNone.Return value
Available pages
ORDER BY, LIMIT, and OFFSET clauses.Function| Type | Description |
|---|---|
string | null | The full query string, or null if not available. |
- Record list
Related records and lookups
kintone.app.getLookupTargetAppId()
kintone.app.getLookupTargetAppId()
Returns the app ID of the target app for a Lookup field.FunctionParameters
Return value
Example
| Parameter | Type | Required | Description |
|---|---|---|---|
fieldCode | string | Yes | The field code of the Lookup field. |
| Type | Description |
|---|---|
number | null | The app ID of the Lookup target app, or null if the field is not a Lookup. |
kintone.app.getRelatedRecordsTargetAppId()
kintone.app.getRelatedRecordsTargetAppId()
Process management
kintone.app.getStatus()
kintone.app.getStatus()
Returns the process management settings for the current app, including all configured statuses and their transitions.FunctionParametersNone.Return value
Example
| Property | Type | Description |
|---|---|---|
enable | boolean | true if process management is enabled for the app. |
states | object | An object whose keys are status names, each containing status configuration. |
actions | array | An array of action objects describing available status transitions. |
Returns
null if process management is not enabled for the app.kintone.app.record.getStatusActions()
kintone.app.record.getStatusActions()
Returns the process management actions available to the current user for the record displayed on the page.FunctionParametersNone.Return valueReturns an array of action objects.
Available pages
| Property | Type | Description |
|---|---|---|
name | string | The action name as displayed in the UI. |
value | string | The status the record will move to when this action is taken. |
- Record detail
kintone.app.record.getAssignees()
kintone.app.record.getAssignees()
Returns the current assignees for the process management step of the record displayed on the page.FunctionParametersNone.Return valueReturns an array of assignee objects.
Available pages
| Property | Type | Description |
|---|---|---|
code | string | The login name of the assignee. |
name | string | The display name of the assignee. |
- Record detail
Categories
kintone.app.getCategories()
kintone.app.getCategories()
Returns the categories configured for the current app.FunctionParametersNone.Return value
Example
| Property | Type | Description |
|---|---|---|
enable | boolean | true if categories are enabled for the app. |
categories | array | An array of category name strings. |
Returns
null if categories are not enabled for the app.Related pages
- Record APIs — Read and modify record data
- Space APIs — Read space information
- REST API: Apps — Manage app settings via REST
- REST API: Form fields — Manage form fields via REST