Skip to content

Zoho: Trigger organization-level enrichment for a CRM record

Zoho ziaOrgEnrichment.submitOrgEnrichmentRequest: arguments, response, policy and SDK examples.

← Zia org enrichment operations · Get started

Operation zoho.submitorgenrichmentrequest

Provider route: POST /crm/v8/__zia_org_enrichment. 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["ziaOrgEnrichment"]["submitOrgEnrichmentRequest"]>[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.ziaOrgEnrichment.submitOrgEnrichmentRequest(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.zia_org_enrichment.submit_org_enrichment_request(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 parentCRM module name from which enrichment is triggered.
Maximum length: 255
query.record_idstringOptionalUnique CRM record ID for which enrichment is requested.
Maximum length: 19
bodyobjectRequired within parentDefines the body of a Zia organization enrichment request. Wraps the list of enrichment inputs under the `__zia_org_enrichment` key.
Additional keys: not allowed
body.__zia_org_enrichmentarrayRequired within parentSpecify the list of enrichment requests to schedule. You can supply up to 50 entries in a single call.
Maximum items: 50
body.__zia_org_enrichment[]objectEach itemRepresents a single Zia organization enrichment request that defines the trigger fields used to identify the organization.
Additional keys: not allowed
body.__zia_org_enrichment[].enrich_based_onobjectRequired within parentSpecify the details of the fields on whose values you want to trigger enrichment. Note that you must provide at least one of the following values in the input. Based on these values, Zia will look for information on the web and enrich fields as per [Enrichment Configuration.](zia_enrichment.yaml#$.paths./settings/zia/data_enrichment.get)) Note that the values of these keys must be at least three characters long and only in English.
Additional keys: not allowed
body.__zia_org_enrichment[].enrich_based_on.emailstringOptionalSpecify the email address of the organization that Zia uses as a trigger value to look up enrichment data.
Format: email
body.__zia_org_enrichment[].enrich_based_on.namestringRequired within parentSpecify the name of the organization that Zia uses as a trigger value to look up enrichment data.
Maximum length: 255
body.__zia_org_enrichment[].enrich_based_on.websitestringOptionalSpecify the website domain of the organization that Zia uses as a trigger value to look up enrichment data.
Format: website

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

FieldTypePresenceDescription and constraints
$objectRootDefines the response body returned when a Zia organization enrichment job is successfully scheduled.
Additional keys: not allowed
__zia_org_enrichmentarrayRequired within parentContains the list of scheduling results, one entry per submitted enrichment request.
Maximum items: 50
__zia_org_enrichment[]objectEach itemRepresents the scheduling result of a single enrichment request.
Additional keys: not allowed
__zia_org_enrichment[].codestringRequired within parentIndicates the scheduling outcome of the enrichment request.

Possible values:
SCHEDULED - The enrichment job has been queued for asynchronous execution.
Known values: SCHEDULED
__zia_org_enrichment[].detailsobjectRequired within parentContains identifying information about the scheduled enrichment job.
Additional keys: not allowed
__zia_org_enrichment[].details.idstringRequired within parentShows the unique identifier assigned to the scheduled enrichment job. Use this identifier with GET `/__zia_org_enrichment/{id}` to retrieve job status and enriched data.
Maximum length: 255
__zia_org_enrichment[].messagestringRequired within parentProvides a message that describes the outcome of the scheduling request.
Maximum length: 255
__zia_org_enrichment[].statusstringRequired within parentIndicates whether the scheduling request succeeded.

Possible values:
success - The enrichment job was successfully accepted and queued.
Known values: success

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