Get Lookup Target
Get Lookup Target - kintone.app.getLookupTargetAppId()
Retrieves the App ID of the Datasource app of the specified Lookup field, in the record.
Function
Desktop
kintone.app.getLookupTargetAppId(fieldCode)
Mobile
kintone.mobile.app.getLookupTargetAppId(fieldCode)
Parameters
PARAMETER | VALUE | REQUIRED | DESCRIPTION |
---|---|---|---|
fieldCode | String | Yes | Specify the field code of the Lookup 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 Lookup 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.