rikas / zoho_hub

Zoho CRM API V2 Wrapper
MIT License
25 stars 30 forks source link

Creating Relations is not working #77

Open timothymahoney opened 1 year ago

timothymahoney commented 1 year ago

Hi there, thanks for the work on this gem!

I've got myself a setup where I have 2 models, account and contact, and they're pretty much just blank except for the attributes that match the Zoho attributes. I'm trying to create a relation in zoho, by using the add_related functionality demoed in the readme in the rails console, and it errors out with

ZohoHub::RecordInvalid (the module name given seems to be invalid)

Account.all and Contact.all work, finding works, creating works, but creating (or removing) the relationship between Account -> Contact does not.

Am I just setting this up wrong? Any guidance here would be super appreciated!

dsimowitz-daisy commented 1 year ago

@timothymahoney did you ever figure this out? I'm sending a raw request to zoho completely bypassing this library and am seeing the same error message with accounts and contacts.