Get Related Records Target
Get Related Records Target - kintone.app.getRelatedRecordsTargetAppId()
Retrieves the App ID of the Datasource app of the specified Related records field, in the record.
Function
Desktop
kintone.app.getRelatedRecordsTargetAppId(fieldCode)
Mobile
kintone.mobile.app.getRelatedRecordsTargetAppId(fieldCode)
Parameters
PARAMETER | VALUE | REQUIRED | DESCRIPTION |
---|---|---|---|
fieldCode | String | Yes | Specify the field code of the Related records field. |
Returns
- The App ID or null.
- Null is returned for the following cases:
- The specified field does not exist.
- The specified field cannot be viewed.
- The specified field is not a Related records field.
Sample
|
|
Available Pages (Desktop)
- Record List
- Record Create
- Record Edit
- Record Details
- Record Print
- Graph
- File Import
- File Export
- Plug-in config page
Available Pages (Mobile)
- Record List
- Record Create
- Record Edit
- Record Details
- Graph
Notes
- As long as you have permission to view the specified field, you can retrieve the datasource App ID even if you don't have access to view the data in the datasource app.