Skip to content

Zoho: Get record locking information

Zoho lockingInformations.getRecordLockingInformationOfTheRecord: arguments, response, policy and SDK examples.

← Locking informations operations · Get started

Operation zoho.getrecordlockinginformationoftherecord

Provider route: GET /crm/v8/{moduleName}/{recordId}/Locking_Information__s. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["lockingInformations"]["getRecordLockingInformationOfTheRecord"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.lockingInformations.getRecordLockingInformationOfTheRecord(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_zoho import ZohoIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.locking_informations.get_record_locking_information_of_the_record(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.moduleNamestringRequired within parentMaximum length: 256
path.recordIdstringRequired within parentMaximum length: 32
queryobjectOptionalAdditional keys: not allowed
query.fieldsstringOptionalMaximum length: 2048

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternativeContains the locking information details and pagination metadata for the locked record.
Additional keys: not allowed
$ (anyOf 1).dataarrayRequired within parentContains the locking information details of the locked record.
Maximum items: 1
$ (anyOf 1).data[]objectEach itemRepresents the locking information details of a locked record.
Additional keys: not allowed
$ (anyOf 1).data[].$editablebooleanOptionalIndicates whether the locked record is editable by the current user. Possible values: true - The record is editable. false - The record is not editable.
$ (anyOf 1).data[].$field_statesJSONOptionalRepresents the field-level lock states of the record. Returns null when no field-level locking is applied.
$ (anyOf 1).data[].$field_states (anyOf 1)stringAlternativeContains the locking information details and pagination metadata for the locked record.
Maximum length: 255
$ (anyOf 1).data[].$field_states (anyOf 2)nullAlternativeContains the locking information details and pagination metadata for the locked record.
$ (anyOf 1).data[].$sharing_permissionstringOptionalRepresents the sharing permission level of the current user on the locked record.
Maximum length: 10000
$ (anyOf 1).data[].$zia_visionsJSONOptionalRepresents Zia Visions data associated with the record. Returns null when Zia Visions data is not available.
$ (anyOf 1).data[].$zia_visions (anyOf 1)stringAlternativeContains the Zia Visions related information.
Maximum length: 255
$ (anyOf 1).data[].$zia_visions (anyOf 2)nullAlternativeNull when Zia Visions data is not available.
$ (anyOf 1).data[].Feature_Type__sstringOptionalRepresents the feature type associated with the locking information.
Maximum length: 255
$ (anyOf 1).data[].Lock_Source__sstringOptionalIndicates the source of the record lock. Possible values: Manual - The record was locked manually by a user. Automatic - The record was locked automatically by a rule. Both - The record has both manual and automatic locks.
Known values: Manual, Both, Automatic
Maximum length: 255
$ (anyOf 1).data[].Locked_By__sJSONOptional
$ (anyOf 1).data[].Locked_By__s (anyOf 1)ModelAlternativeExpand Get record locking information by ID — response body — data data item Locked By s id, module, name — shared_locked-by-s_12d8bbec7e67
$ (anyOf 1).data[].Locked_By__s (anyOf 2)ModelAlternativeExpand Get record locking information by ID — response body — data data item Locked By s id, module, name — shared_locked-by-s_1d244b825e98
$ (anyOf 1).data[].Locked_For__sModelOptionalExpand Get record locking information by ID — response body — data data item Locked For s
$ (anyOf 1).data[].Locked_Reason__sJSONOptional
$ (anyOf 1).data[].Locked_Reason__s (anyOf 1)stringAlternativeRepresents the reason for locking the record. Returns null for automatically locked records.
Maximum length: 3000
$ (anyOf 1).data[].Locked_Reason__s (anyOf 2)nullAlternativeRepresents the reason for locking the record. Returns null for automatically locked records.
Maximum length: 3000
$ (anyOf 1).data[].Locked_Time__sstringOptionalRepresents the timestamp when the record was locked.
Format: date-time
$ (anyOf 1).data[].Record_Locking_Configuration_Id__sstringOptionalRepresents the unique identifier of the record locking configuration applied to this record.
Maximum length: 255
$ (anyOf 1).data[].Record_Locking_Rule_Id__sJSONOptional
$ (anyOf 1).data[].Record_Locking_Rule_Id__s (anyOf 1)stringAlternativeRepresents the unique identifier of the record locking rule. Returns null for manually locked records.
Maximum length: 255
$ (anyOf 1).data[].Record_Locking_Rule_Id__s (anyOf 2)nullAlternativeRepresents the unique identifier of the record locking rule. Returns null for manually locked records.
Maximum length: 255
$ (anyOf 1).data[].idstringRequired within parentRepresents the unique identifier of the locking information record.
Maximum length: 255
$ (anyOf 1).infoobjectRequired within parentAn object containing the pagination details.
Additional keys: not allowed
$ (anyOf 1).info.countJSONRequired within parent
$ (anyOf 1).info.count (anyOf 1)integerAlternativeRepresents the total number of locking information records returned in the response.
Format: int32
$ (anyOf 1).info.count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).info.more_recordsbooleanRequired within parentIndicates whether more locking information records are available beyond the current page. Possible values: true - More records are available. false - No more records are available.
$ (anyOf 1).info.next_page_tokenJSONOptional
$ (anyOf 1).info.next_page_token (anyOf 1)stringAlternativeRepresents the token used to fetch the next page of records. Returns null when token-based pagination is not in use or no next page exists.
Maximum length: 255
$ (anyOf 1).info.next_page_token (anyOf 2)nullAlternativeRepresents the token used to fetch the next page of records. Returns null when token-based pagination is not in use or no next page exists.
Maximum length: 255
$ (anyOf 1).info.pageJSONRequired within parent
$ (anyOf 1).info.page (anyOf 1)integerAlternativeRepresents the current page number of the response.
Format: int32
$ (anyOf 1).info.page (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).info.page_token_expiryJSONOptional
$ (anyOf 1).info.page_token_expiry (anyOf 1)stringAlternativeRepresents the expiry timestamp of the page token. Returns null when token-based pagination is not in use.
Maximum length: 255
$ (anyOf 1).info.page_token_expiry (anyOf 2)nullAlternativeRepresents the expiry timestamp of the page token. Returns null when token-based pagination is not in use.
Maximum length: 255
$ (anyOf 1).info.per_pageJSONRequired within parent
$ (anyOf 1).info.per_page (anyOf 1)integerAlternativeRepresents the number of records displayed per page.
Format: int32
$ (anyOf 1).info.per_page (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).info.previous_page_tokenJSONOptional
$ (anyOf 1).info.previous_page_token (anyOf 1)stringAlternativeRepresents the token used to fetch the previous page of records. Returns null when token-based pagination is not in use or no previous page exists.
Maximum length: 255
$ (anyOf 1).info.previous_page_token (anyOf 2)nullAlternativeRepresents the token used to fetch the previous page of records. Returns null when token-based pagination is not in use or no previous page exists.
Maximum length: 255
$ (anyOf 2)nullAlternative

Referenced models: Get record locking information by ID — response body — data data item Locked By s id, module, name — shared_locked-by-s_12d8bbec7e67, Get record locking information by ID — response body — data data item Locked By s id, module, name — shared_locked-by-s_1d244b825e98, Get record locking information by ID — response body — data data item Locked For s

Get record locking information by ID — response body — data data item Locked By s id, module, name — shared_locked-by-s_12d8bbec7e67
FieldTypePresenceDescription and constraints
$objectRootAn object containing the details of the user who locked the record. Returns **null** for automatically locked records where no specific user performed the lock.
Additional keys: not allowed
idstringRequired within parentRepresents the unique identifier of the user who locked the record.
Maximum length: 255
modulestringOptionalRepresents the module to which the user who locked the record belongs.
Maximum length: 255
namestringRequired within parentRepresents the name of the user who locked the record.
Maximum length: 255
Get record locking information by ID — response body — data data item Locked By s id, module, name — shared_locked-by-s_1d244b825e98
FieldTypePresenceDescription and constraints
$nullRootAn object containing the details of the user who locked the record. Returns **null** for automatically locked records where no specific user performed the lock.
Additional keys: not allowed
idstringRequired within parentRepresents the unique identifier of the user who locked the record.
Maximum length: 255
modulestringOptionalRepresents the module to which the user who locked the record belongs.
Maximum length: 255
namestringRequired within parentRepresents the name of the user who locked the record.
Maximum length: 255
Get record locking information by ID — response body — data data item Locked For s
FieldTypePresenceDescription and constraints
$objectRootRepresents the details of the record that is locked.
Additional keys: not allowed
idstringRequired within parentRepresents the unique identifier of the locked record.
Maximum length: 255
moduleobjectRequired within parentRepresents the details of the module to which the locked record belongs.
Additional keys: not allowed
module.api_namestringRequired within parentRepresents the API name of the module of the locked record.
Maximum length: 255
module.idstringRequired within parentRepresents the unique identifier of the module of the locked record.
Maximum length: 255
namestringRequired within parentRepresents the name of the locked record.
Maximum length: 255

SDK function policy ID: zoho.getrecordlockinginformationoftherecord. Catalog operation: getRecordLockingInformationOfTheRecord. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

No-content response statuses: [204]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.