{"action":"created","issue":{"url":"https://api.github.com/repos/amalc/rubyzoho/issues/20","labels_url":"https://api.github.com/repos/amalc/rubyzoho/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/amalc/rubyzoho/issues/20/comments","events_url":"https://api.github.com/repos/amalc/rubyzoho/issues/20/events","html_url":"https://github.com/amalc/rubyzoho/issues/20","id":26565587,"number":20,"title":"Can't save to custom fields.","user":{"login":"ahhrrr","id":173440,"avatar_url":"https://avatars.githubusercontent.com/u/173440?v=3","gravatar_id":"","url":"https://api.github.com/users/ahhrrr","html_url":"https://github.com/ahhrrr","followers_url":"https://api.github.com/users/ahhrrr/followers","following_url":"https://api.github.com/users/ahhrrr/following{/other_user}","gists_url":"https://api.github.com/users/ahhrrr/gists{/gist_id}","starred_url":"https://api.github.com/users/ahhrrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahhrrr/subscriptions","organizations_url":"https://api.github.com/users/ahhrrr/orgs","repos_url":"https://api.github.com/users/ahhrrr/repos","events_url":"https://api.github.com/users/ahhrrr/events{/privacy}","received_events_url":"https://api.github.com/users/ahhrrr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"amalc","id":101611,"avatar_url":"https://avatars.githubusercontent.com/u/101611?v=3","gravatar_id":"","url":"https://api.github.com/users/amalc","html_url":"https://github.com/amalc","followers_url":"https://api.github.com/users/amalc/followers","following_url":"https://api.github.com/users/amalc/following{/other_user}","gists_url":"https://api.github.com/users/amalc/gists{/gist_id}","starred_url":"https://api.github.com/users/amalc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amalc/subscriptions","organizations_url":"https://api.github.com/users/amalc/orgs","repos_url":"https://api.github.com/users/amalc/repos","events_url":"https://api.github.com/users/amalc/events{/privacy}","received_events_url":"https://api.github.com/users/amalc/received_events","type":"User","site_admin":false},"milestone":null,"comments":18,"created_at":"2014-01-30T00:17:53Z","updated_at":"2015-02-22T10:59:07Z","closed_at":null,"body":"Hi again,\r\n\r\nI'm having trouble updating custom fields from Ruby. My Contacts module has a Zendesk ID field that I'm able to access from the API. But I haven't successfully been able to write to it. I've checked the field permissions, and it is visible and read-write to all users. Here's a test case:\r\n\r\n```ruby\r\nrequire 'bundler'\r\nBundler.require(:default)\r\n\r\nRubyZoho.configure do |config|\r\n  config.api_key = ENV['ZOHO_API_KEY']\r\n  config.crm_modules = ['Contacts']\r\nend\r\n\r\nc1 = RubyZoho::Crm::Contact.new\r\nc1.last_name = 'smith' #required\r\nc1.email = 'smith@example.com'\r\nc1.zendesk_id = 'abc123'\r\nc1.save\r\nc1.zendesk_id\r\n#=> abc123\r\n\r\nc2 = RubyZoho::Crm::Contact.find_by_email('smith@example.com').first\r\nc2.zendesk_id\r\n# => nil\r\n```\r\n\r\nAny ideas?\r\n\r\nI've also noticed some issues where the zendesk_api method doesn't get created on Contact instances unless I call RubyZoho::Crm::Contact.new first. Not sure if they're related, but I can work up a test case for that too."},"comment":{"url":"https://api.github.com/repos/amalc/rubyzoho/issues/comments/75429975","html_url":"https://github.com/amalc/rubyzoho/issues/20#issuecomment-75429975","issue_url":"https://api.github.com/repos/amalc/rubyzoho/issues/20","id":75429975,"user":{"login":"amalc","id":101611,"avatar_url":"https://avatars.githubusercontent.com/u/101611?v=3","gravatar_id":"","url":"https://api.github.com/users/amalc","html_url":"https://github.com/amalc","followers_url":"https://api.github.com/users/amalc/followers","following_url":"https://api.github.com/users/amalc/following{/other_user}","gists_url":"https://api.github.com/users/amalc/gists{/gist_id}","starred_url":"https://api.github.com/users/amalc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amalc/subscriptions","organizations_url":"https://api.github.com/users/amalc/orgs","repos_url":"https://api.github.com/users/amalc/repos","events_url":"https://api.github.com/users/amalc/events{/privacy}","received_events_url":"https://api.github.com/users/amalc/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T10:59:07Z","updated_at":"2015-02-22T10:59:07Z","body":"And are you pointing at the repo? Or using the published gem?"}}