Executing a Function in ZOHO CRM Sandbox returns INVALID_TOKEN
I'm trying to execute a function in the CRM sandbox but the function keeps on returning the following error.
{"code":"INVALID_TOKEN","details":{},"message":"invalid oauth token","status":"error"}
that
same function works just fine in the production environment but I can't
use ANY functions for that matter because they all return the exact
same error.
something as simple as this doesn't work.
- data = zoho.crm.getRecordById("Deals", OppId);
- info data;
When
I get the prompt to provide the OppId (which is created in the sandbox,
the record exists exactly where it should be) The console returns the
following.
- {"code":"INVALID_TOKEN","details":{},"message":"invalid oauth token","status":"error"}
Again,
that simple function works just fine in production but my problem is
that I can't run ANY functions in the sandbox environment because of
INVALID_TOKEN.
How can I fix this?