MORE BUGS: Client Script, Deluge and Widget JS SDK don't work as expected when trying to retrieve a record that has been "rejected" as part of an approval process.

MORE BUGS: Client Script, Deluge and Widget JS SDK don't work as expected when trying to retrieve a record that has been "rejected" as part of an approval process.

Client Script

$Page.record is null when accessing a record that has entered an approval process (or been "rejected").

Deluge

zoho.crm.getRecordById(moduleName, recordId) returns {"status":"failure"} when recordId is a valid, but rejected record.

OK... I understand that Deluge is currently a wrapper to v2 of the CRM REST API - so I can get it to work by adding the additional v2 specific parameters as such:

zoho.crm.getRecordById(moduleName, recordId, {"approved":"both"})

But why should I? I am requesting a specific Record - explicitly by ID - and so I shouldn't need to further classify that it is approved or not. The Deluge to API wrapper should take care of this for me.

Incidentally, the documentation to explain what Query Value parameter map values can be included as part of the getRecordById method points to the v3 REST API document - where "approved" is dropped from the documentation.


Widget JS SDK

With the understanding that the Widget JS SDK library is also a wrapper to the v2 REST API, you might think that you could search for "rejected" records using the ZOHO.CRM.API.searchRecord method.

You'd be wrong.

There is no way to include the "approved":"both" optional parameter in the Widget method in order to return "rejected" records from the v2 REST API.

Incidentally, the documentation for this Widget JS SDK method is wrong too.


The documentation suggests the following:

ZOHO.CRM.API.searchRecord(config, page, per_page)

To retrieve the records that matches your search criteria
NameTypeDescription
configobject
Configuration Object
NameTypeDescription
EntityStringSysRefName of module
TypeStringAllowed values "email|phone|word|criteria"
QueryStringquery String
delaybooleanquery String
pageStringPagination - Page number
per_pageStringPagination - per page limit

when in fact it should be:

ZOHO.CRM.API.searchRecord(config)

To retrieve the records that matches your search criteria
NameTypeDescription
configobject
Configuration Object
NameTypeDescription
EntityStringSysRefName of module
TypeStringAllowed values "email|phone|word|criteria"
QueryStringquery String
delaybooleanquery String
page
String
Pagination - Page number
per_page
String

Pagination - per page limit

===================
Powered by Haiku
===================