I have a Rails app from which I would like to convert a lead and merge it with an existing account. Does anyone have some sample code using Ruby? I have found C# and Java examples and understand the convert() method, but would love to see it done in Ruby.

  • Have you looked at the databasedotcom gem? – Daniel Hoechst Apr 11 '14 at 18:49

The convertLead method is AFAIK only available in the (older) SOAP API. databasedotcom builds on the REST API.

As with any other language, you could start from the WSDL - here is a blog post on that Ruby and Salesforce Integration with SOAP.

Google produced these two hits:

which might (or might not) be better places to start from.

There is some sample code here https://github.com/BinaryMuse/rforce-wrapper but not for convert lead.


You can checkout Dailyforce a Example of Ruby on Rails with Salesforce

  • can u add some more details to your answer and be specific on how this example / library is going to address the question. – Vamsi Krishna Mar 2 '15 at 1:50
  • Basically i wanted to show a way of using Ruby with Salesforce, using gems that have the ability to do any query a user needs with restforce and with the authentication omniauth-salesforce. – Brian Díaz Mar 3 '15 at 1:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.