Skip to content

Zoho: Create Duplicate Check Preference

Zoho duplicateCheckPreference.createDuplicateCheckPreference: arguments, response, policy and SDK examples.

← Duplicate check preference operations · Get started

Operation zoho.createduplicatecheckpreference

Provider route: POST /crm/v8/settings/duplicate_check_preference. 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["duplicateCheckPreference"]["createDuplicateCheckPreference"]>[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.duplicateCheckPreference.createDuplicateCheckPreference(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.duplicate_check_preference.create_duplicate_check_preference(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectRequired within parentAdditional keys: not allowed
query.modulestringRequired within parentOne of: Leads
bodyModelRequired within parentExpand Create Duplicate Check Preference — request body — body

Referenced models: Create Duplicate Check Preference — 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
$objectRootResponse wrapper object containing the duplicate check preference details.
Additional keys: not allowed
duplicate_check_preferenceobjectRequired within parentDetails of the duplicate check preference configuration.
Additional keys: not allowed
duplicate_check_preference.codestringOptionalStatus code indicating the result of the operation.
Known values: SUCCESS
duplicate_check_preference.detailsobjectOptionalAdditional details related to the operation.
Additional keys: not allowed
duplicate_check_preference.messagestringOptionalRepresents the message providing additional information about the operation result.
Maximum length: 100
duplicate_check_preference.statusstringOptionalStatus of the operation.
Known values: success
Create Duplicate Check Preference — request body — body
FieldTypePresenceDescription and constraints
$objectRootRepresents the request payload used to create duplicate check preference.
Additional keys: not allowed
duplicate_check_preferenceobjectRequired within parentDuplicate check preference details.
Additional keys: not allowed
duplicate_check_preference.typestringRequired within parentType of duplicate check preference.
One of: converted_records, mapped_module_records
duplicate_check_preference.type_configurationsarray or nullOptionalConfigurations for the duplicate check preference type. Mandatory when type is mapped_module_records and ignored when type is converted_records. Only the first entry is processed.
Maximum items: 1
duplicate_check_preference.type_configurations[]objectEach itemType configuration details.
Additional keys: not allowed
duplicate_check_preference.type_configurations[].field_mappingsarrayRequired within parentField mappings for duplicate check.
duplicate_check_preference.type_configurations[].field_mappings[]objectEach itemField mapping details.
Additional keys: not allowed
duplicate_check_preference.type_configurations[].field_mappings[].current_fieldobjectRequired within parentUnique field in the Leads module to match on.
Additional keys: not allowed
duplicate_check_preference.type_configurations[].field_mappings[].current_field.api_namestringOptionalRepresents the API name of the unique field in the Leads module. Validated when supplied, but the mapping is stored against id.
Maximum length: 50
duplicate_check_preference.type_configurations[].field_mappings[].current_field.idstringRequired within parentRepresents the unique identifier of the field. Use the [Get Fields Metadata API](fields.json#$.paths./settings/fields.get) to retrieve the unique ID fields. The mapping is stored against this id, so it is mandatory.
Maximum length: 50
duplicate_check_preference.type_configurations[].field_mappings[].current_field.namestringOptionalAccepted for symmetry with the response and ignored by the API.
Maximum length: 50
duplicate_check_preference.type_configurations[].field_mappings[].mapped_fieldobjectRequired within parentUnique field in the mapped module to match against.
Additional keys: not allowed
duplicate_check_preference.type_configurations[].field_mappings[].mapped_field.api_namestringOptionalRepresents the API name of the mapped field. Validated when supplied, but the mapping is stored against id.
Maximum length: 50
duplicate_check_preference.type_configurations[].field_mappings[].mapped_field.idstringRequired within parentRepresents the unique identifier of the mapped field. The mapping is stored against this id, so it is mandatory.
Maximum length: 50
duplicate_check_preference.type_configurations[].field_mappings[].mapped_field.namestringOptionalAccepted for symmetry with the response and ignored by the API.
Maximum length: 50
duplicate_check_preference.type_configurations[].field_mappings[].mapped_field.selectedstringOptionalSend None to skip this field mapping. Any other value, or omitting the property, creates the mapping.
One of: None
Maximum length: 4
duplicate_check_preference.type_configurations[].mapped_moduleobjectRequired within parentRepresents the mapped module details. Mandatory when type is mapped_module_records.
Additional keys: not allowed
duplicate_check_preference.type_configurations[].mapped_module.api_namestringOptionalRepresents the API name of the module. Validated when supplied, but the module is resolved from id.
One of: Contacts
duplicate_check_preference.type_configurations[].mapped_module.idstringRequired within parentRepresents the unique identifier of the module. The module must resolve to Contacts.
Maximum length: 50
duplicate_check_preference.type_configurations[].mapped_module.namestringOptionalAccepted for symmetry with the response and ignored by the API.
Maximum length: 50

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