rubyzoho icon indicating copy to clipboard operation
rubyzoho copied to clipboard

How do I use related_records method

Open reedhein opened this issue 8 years ago • 3 comments

RubyZoho.configuration.api.related_records("Contacts", contact_with_attachments, "Attachments") #=> 200

I feel like I should be able to get more from this method.

reedhein avatar May 17 '16 01:05 reedhein

playing around with a forked version of the gem, it appears that the arguments are flipped RubyZoho.configuration.api.related_records("Contacts", contact_with_attachments, "Attachments") becomes RubyZoho.configuration.api.related_records("Attachments", contact_with_attachments, "Contacts")

I also returned the value of #to_hash instead of #check_for_errors and it works fine.

reedhein avatar May 17 '16 06:05 reedhein

Excellent! Did you want to send in a PR?


Amal Chaudhuri * +1-212-537-9054

amalc avatar May 17 '16 10:05 amalc

No, I will add downladFile support b/c it is what my real goal is. After that I will submit a PR.

reedhein avatar May 17 '16 14:05 reedhein