Hi folks,
I have got a deluge script (in a Zoho Cliq widget" that is pulling records from the Cases module in Zoho CRM.
The script is working fine - BUT
I wan to limit the records being pulled to a very narrow condition as follows:
1. the logged in user is the Case Owner AND
2. the Case Status is not one of the following ("closed", "rejected") AND
The deluge current call to the CRM is as follows:
inquirylist = zoho.crm.getRecords("Cases",1,20,{"":""},"zohocrmauth");
Problem 1:
I am unclear how to structure the critera statement to reach the above, since there does not seem to be a way to do a nested called (eg. Status:equals:closed OR Status:equals:rejected).
It is possible for me to fetch all records and manually filter them, but the problem is that there may be 100's of records for an owner and paging through them may not give the latest open records.
Problem 2:
The other problem is that is does not appear to be possible to fetch the userid from the CRM, since the getuser API call (API v1) does not support an explicit connection. This also means any efforts to perform user-specific activities from any Cliq function back into the CRM does not appear to be possible - or have I missed something?
Any help is very much appreciated.
Regards,
Joe