1

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.

1
  • Have you looked at the databasedotcom gem? Commented Apr 11, 2014 at 18:49

2 Answers 2

1

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.

0

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

2
  • can u add some more details to your answer and be specific on how this example / library is going to address the question. Commented Mar 2, 2015 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. Commented Mar 3, 2015 at 1:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .