AnsweredAssumed Answered

How to Create Leads in SugarCRM using REST API with Ruby SugarCRM gem?

Question asked by adbarads adbarads on Sep 25, 2015
Latest reply on Sep 25, 2015 by dkallish
I am really asking 3 questions here:

1) I am trying to craft the proper POST method request to send to the server using ruby to create a Lead inside of a Sugarcrm environment that is run locally.

2) So I tried using the gem:
It doesn't appear to work when I do the following:

After I have already connected to the server using the SugarCRM.connect() method
Now I proceed to try:
SugarCRM::Leads.create( :title => 'test', :firstname => 'testName', :lastname => 'testlastname')

I check the UI it is not populated. I then proceed to run the exact same test manually through the UI and it works and creates a Lead.

I don't know if anyone has experience with that gem, if not, please just provide information on being able to craft the request through a REST client.

I am running: SugarCRM Enterprise, Version (Build 1163)

3) Also, is there a server config or setting that enables REST access?
Or are these services available out of the box by default configs.