Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper method for retrieving records modified after #44

Open
bjminihan opened this issue Jul 22, 2015 · 3 comments
Open

Proper method for retrieving records modified after #44

bjminihan opened this issue Jul 22, 2015 · 3 comments

Comments

@bjminihan
Copy link

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.

@amalc
Copy link
Owner

amalc commented Jul 22, 2015

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.

@bjminihan
Copy link
Author

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

@amalc
Copy link
Owner

amalc commented Sep 1, 2015

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants