Deluge script lacks advanced trigonometric functions like acos/atan. If you want to implement the great circle distance method, you'll need them. Here is some code I ported to deluge to fix this problem.
NB: this blog post is no longer relevant as API v2 lets you use searchRecords with multiple criteria :) I discovered something really cool tucked away in the Zoho CRM forums today. For the history, check out this thread . In summary, the searchRecords API task in Zoho CRM is impossible to use if you have multiple criteria and in general it's pretty annoying to get the single criterion right. In the forum thread, Zoho Support advised that you can actually use getRecords with a view name. This feature is not documented on the getRecords page at all but I can confirm it works:D This is really, really cool. It's going to make my life as a Zoho dev much easier! Instead of having to do something really inefficient and ugly like: leadRecords = zoho.crm.searchRecords("Leads","(Created Time|<|" + yesterday_date +")",fromIndex,toIndex); for each ele in leadRecords { lead_source = ele.get("Lead Source"); createTime=(ele.g
This comment has been removed by a blog administrator.
ReplyDeleteHi Jeremy, impressive, but I wonder if it doesn't make more sense to use math.js or python (or whatever specialized library available for this or any other task) to build an app and call the functions from Deluge geturl. Maybe performance wouldn't be optimal but to build a page or a map should be enough. What do you think? As far as I know, Deluge doesn't allow to build portable libraries, does it?
ReplyDeleteThat is definitely an option.
Delete