rubyzoho icon indicating copy to clipboard operation
rubyzoho copied to clipboard

Proper method for retrieving records modified after

Open bjminihan opened this issue 9 years ago • 3 comments

Using version 0.2.0, I was able to pull Account records modified within the past 4 hours.

Since upgrading to 0.5.0, this method no longer works.

Here's how I'm doing it:

    z = ZohoApi::Crm.new(Autobahn::Config.zoho_api_key, ["Accounts"], true, true)
    z.find_records("Accounts", "modified_time", ">", "2015-02-19 11:39:33")

I could find no other way of achieving this with the RubyZoho::Crm::Account.new object, but would love any other method that returns more than the exact match (the > is being ignored).

Apologies if there was a better place to post this. I'm at my wit's end.

bjminihan avatar Jul 22 '15 01:07 bjminihan

Well, the Zoho API for retrievals changed between ‎those versions and it's entirely possible that the new API doesn't support it. I'll take a look.  From: Bryan MinihanSent: Tuesday, July 21, 2015 21:20To: amalc/rubyzohoReply To: amalc/rubyzohoSubject: [rubyzoho] Proper method for retrieving records modified after (#44)Using version 0.2.0, I was able to pull Account records modified within the past 4 hours.

Since upgrading to 0.5.0, this method no longer works.

Here's how I'm doing it:

z = ZohoApi::Crm.new(Autobahn::Config.zoho_api_key, ["Accounts"], true, true)
z.find_records("Accounts", "modified_time", ">", "2015-02-19 11:39:33")

I could find no other way of achieving this with the RubyZoho::Crm::Account.new object, but would love any other method that returns more than the exact match (the > is being ignored).

Apologies if there was a better place to post this. I'm at my wit's end.

—Reply to this email directly or view it on GitHub.

amalc avatar Jul 22 '15 02:07 amalc

Any news on how to find recent accounts in rubyzoho? Buehler?

bjminihan avatar Aug 31 '15 20:08 bjminihan

@bjminihan Sorry, been a bit hectic and didn't get a chance to look at the API call. Will check over the next couple of days.

amalc avatar Sep 01 '15 00:09 amalc