sugarcrm
sugarcrm copied to clipboard
A ruby based REST Client for SugarCRM
HI, I have a question. I need to query the Contact which have a specific email address. I tried Contact.find :all, :conditions={:email1=>"='email'"} but it throws an exception as email1 is...
Hi, I am using sugarcrm(0.9.18) with ruby 2.3.3. The connection fails for the below code stating `sugarcrm-0.9.18/lib/sugarcrm/module.rb:23:in `initialize': undefined method `classify' for # (NoMethodError)` ```ruby require 'active_support' require 'sugarcrm' SugarCRM.connect("someurl",...
``` [1] pry(main)> ::SugarCRM.connect('[siteurl]', '[user]', '[pass]') => SugarCRM::Namespace0 [2] pry(main)> ::SugarCRM::User.first NameError: uninitialized constant SugarCRM::User from /usr/local/bundle/bundler/gems/sugarcrm-360060139b13/lib/sugarcrm/module_methods.rb:88:in `const_missing' ``` `::SugarCRM.connection.get_entry("Users", 1)` fails too. So far all other modules seem to...
Was prototyping some automation using this gem and ran into a weird issue: ``` [29] pry(main)> ::SugarCRM::User.all(conditions: { user_name: "StrangeWill" }).count => 1128 ``` Query also takes like a couple...
hi, I have a I use the default Many-to-Many relation between the modules Contacts and Documents. I need to access documents related with a particular Contact record. How can I...
`parse_connection_pool_options': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of Array. The error occurred while evaluating nil.delete from /home/vivek/.rvm/gems/ruby-1.9.3-p551@sugarcrmtwo/gems/sugarcrm-0.9.18/lib/sugarcrm/session.rb:30:in`from_hash' from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config/initializers/sugarcrm.rb:6:in...
/home/vivek/.rvm/gems/ruby-1.9.2-p290/bundler/gems/sugarcrm-252045673069/lib/sugarcrm/session.rb:31:in `from_hash': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of Array. The error occurred while evaluating nil.[] from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config/initializers/sugarcrm.rb:4:in`' from...
ruby-1.9.3-p551/bundler/gems/sugarcrm-252045673069/lib/sugarcrm/session.rb:31:in `from_hash': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of Array. The error occurred while evaluating nil.[]
I was using SugarCRM version 6.5 and i could download document by using the following ruby code @ServerOne = SugarCRM.connect(@url,@username,@password) result = @ServerOne.connection.get_document_revision(document_id) m = result["document_revision"]["file"] n = Base64.decode64(m) IO.binwrite...
I noticed the endpoint url is still using version 2. Will there be an update for version 10 which supports a more recent SugarCRM version.