Skip to content

Zoho: Record Clone

Zoho record.cloneRecord: arguments, response, policy and SDK examples.

← Record operations · Get started

Operation zoho.clonerecord

Provider route: POST /crm/v8/{module}/{recordId}/actions/clone. 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["record"]["cloneRecord"]>[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.record.cloneRecord(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.record.clone_record(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.modulestringRequired within parentMaximum length: 25
path.recordIdstringRequired within parentFormat: int64
bodyModelRequired within parentExpand Record Clone — request body — body
By default, when you clone a record, the field values of the parent record will also be copied to the cloned record. If you want to modify certain fields or to add value to some fields, specify their field API names and their corresponding values in the input body.

Referenced models: Record Clone — request body — body

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Record Clone — response body

Referenced models: Record Clone — response body

Record Clone — response body
FieldTypePresenceDescription and constraints
$objectRootRepresents the response schema for the recordsuccess operation.
Additional keys: not allowed
dataarrayRequired within parentRepresents the data value.
Maximum items: 100
Minimum items: 1
data[]ModelEach itemExpand Record Clone — response body — data item

Referenced models: Record Clone — response body — data item

Record Clone — request body — body
FieldTypePresenceDescription and constraints
$objectRootRepresents the RecordsInputSchema data structure.
Additional keys: not allowed
apply_feature_executionarrayOptionalUse the "apply_feature_execution" array to trigger supported CRM features when creating or updating a record through the API. Specify "layout_rules" to apply layout rules or "criteria_validation_rule" to trigger validation rules. For "layout_rules", ensure the request includes all fields required by the layout rule criteria; otherwise, the API returns an error. For "criteria_validation_rule", all applicable validation rules are evaluated, and the API returns "MULTIPLE_OR_MULTI_ERRORS" if multiple rules fail.
apply_feature_execution[]objectEach itemRepresents a single item in the RecordsInputSchema array.
Additional keys: not allowed
apply_feature_execution[].namestringRequired within parentRepresents the apply feature execution value.
One of: layout_rules, range_validation, assignment_rules, function_validation_rule, criteria_validation_rule, global_map_dependency, territory_subordinates
dataarrayRequired within parentRepresents the data value.
Maximum items: 100
Minimum items: 1
data[]ModelEach itemExpand Record Clone — request body — body data item
skip_feature_executionarrayOptionalUse the "skip_feature_execution" array to skip Cadences execution when creating a record through the API. Specify "cadences" as the value of the "name" key and include this key alongside "data" in the request.
skip_feature_execution[]objectEach itemRepresents a single item in the RecordsInputSchema array.
Additional keys: not allowed
skip_feature_execution[].namestringRequired within parentRepresents the skip feature execution value.
One of: assignment_rules, cadences, connected_workflows
triggerarrayOptionalSpecifies the CRM features to execute for the API request. Supported values are "workflow", "approval", and "blueprint". If the "trigger" parameter is not specified, workflows, approvals, and blueprints related to the API are executed. Specify an empty array [] to prevent these features from executing.
trigger[]stringEach itemRepresents a single item in the RecordsInputSchema array.
One of: approval, workflow, blueprint, pathfinder, orchestration

Referenced models: Record Clone — request body — body data item

Record Clone — response body — data item
FieldTypePresenceDescription and constraints
$objectRootRepresents a single record post success data result item.
Additional keys: not allowed
codestringRequired within parentRepresents the error code identifying the type of failure.
Known values: SUCCESS
detailsobjectRequired within parentContains additional context about the error.
Additional keys: not allowed
details.$approval_statestringOptionalContains additional context about the error.
Maximum length: 255
details.$approvedbooleanOptionalContains additional context about the error.
details.$has_moreobjectOptionalContains additional context about the error.
Additional keys: allowed
details.$layout_idobjectOptionalContains additional context about the error.
Additional keys: not allowed
details.$layout_id.display_labelstringOptionalContains additional context about the error.
Maximum length: 255
details.$layout_id.idstringRequired within parentContains additional context about the error.
Format: int64
details.$layout_id.namestringOptionalContains additional context about the error.
Maximum length: 255
details.$locked_for_mebooleanOptionalContains additional context about the error.
details.$process_flowbooleanOptionalContains additional context about the error.
details.$statestringOptionalContains additional context about the error.
Maximum length: 255
details.$statusstringOptionalContains additional context about the error.
Maximum length: 255
details.$wizard_connection_pathJSONOptional
details.$wizard_connection_path (anyOf 1)stringAlternative$wizard_connection_path information denoted by comma separated connection ids between wizard screens.
Maximum length: 2000
Read only: false
details.$wizard_connection_path (anyOf 2)nullAlternative$wizard_connection_path information denoted by comma separated connection ids between wizard screens.
Maximum length: 2000
Read only: false
details.Created_ByobjectRequired within parentContains additional context about the error.
Additional keys: not allowed
details.Created_By.idstringRequired within parentContains additional context about the error.
Format: int64
details.Created_By.namestringRequired within parentContains additional context about the error.
Maximum length: 101
details.Created_TimestringRequired within parentContains additional context about the error.
Format: date-time
details.Modified_ByobjectRequired within parentContains additional context about the error.
Additional keys: not allowed
details.Modified_By.idstringRequired within parentContains additional context about the error.
Format: int64
details.Modified_By.namestringRequired within parentContains additional context about the error.
Maximum length: 101
details.Modified_TimestringRequired within parentContains additional context about the error.
Format: date-time
details.idstringRequired within parentContains additional context about the error.
Format: int64
messagestringRequired within parentRepresents the error message describing why the operation failed.
statusstringRequired within parentIndicates the overall result status of the request.
Known values: success
Record Clone — request body — body data item
FieldTypePresenceDescription and constraints
$objectRootRepresents a single record write data result item.
Additional keys: allowed
LayoutobjectOptionalRepresents the layout value. Use the [Get Layouts Metadata API](layouts.yaml#$.paths./settings/layouts.get) to retrieve the Layout ID.
Additional keys: not allowed
Layout.idstringRequired within parentRepresents the layout value.
Format: int64
Maximum length: 19
Minimum length: 1
Pattern: ^[0-9]{1,19}$
WizardobjectOptionalRepresents the wizard value. Use the [Get Wizards API](wizards.yaml#$.paths./settings/wizards.get) to retrieve the Wizard ID.
Additional keys: not allowed
Wizard.idstringRequired within parentRepresents the wizard value.
Format: int64
Maximum length: 19

SDK function policy ID: zoho.clonerecord. Catalog operation: cloneRecord. 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.

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.