Hello Zoho Support Team,
I’m integrating the Zoho CRM JavaScript SDK v8.0 and I’m getting the error below when running your official sample. I tested directly from:
https://github.com/zoho/zohocrm-javascript-sdk-8.0/blob/main/samples/create_records_sample/create_records.js
Console error:
Expected behavior:
Following the sample flow (auth → fetch fields → create record) should successfully create a record.
Actual behavior:
When I trigger the sample call, a TypeError is thrown inside the SDK indicating getCacheStore is undefined, and the flow stops.
Sample used:
create_records_sample/create_records.js (used as-is with minimal wiring into my app)
Additional notes/observations:
The stack trace shows Vue 3 (vue-router) frames; the project runs inside a Vue 3 SPA.
The error occurs along the getFieldsInfo → getFields → createRecords chain, as if the SDK’s internal cache/store hasn’t been initialized before access.
I followed the sample’s ZOHO.CRM init/auth steps. If an explicit cache/store configuration is required in v8, could you please clarify the correct setup?
I’d appreciate guidance on how to resolve this. I can provide more details if needed (see environment below).
Environment:
SDK: zohocrm-javascript-sdk 8.0
Framework: Vue 3
Browser: Chrome (latest)
Runtime: Browser (SPA)
Thanks!
—
Omer Yuce