2 Confidential Agenda • Who is Splashtop • Personal and Business • Why choose Salesforce • Integration with Salesforce • Accessing data using databasedotcom gem • Lessons Learned • References • Insights 2012/12/8
3 Confidential Who is Splashtop 2012/12/8 • Splashtop’s products are top-selling apps on Apple App Store, Google Play, Amazon Appstore for Android and others.
9 Confidential Using databasedotcom gem 2012/12/8 1. Wiki Accessing Salesforce Data from Ruby 1. Register developer account 2. Setup Remote Access 3. Authentication 4. Modules and Name spacing 5. Ready to go client = Databasedotcom::Client.new client.authenticate client.materialize("Lead") a*“start_trial__c"] = "YES" a.save a = Lead.find_by_Email(‘[email protected]') Accessing Data from Ruby (1/5)
13 Confidential Lessons - Exception Handling 2012/12/8 TotalRequests Limit exceeded • Increase quota or carefully use Uninitialized constant Lead • Materialize each time before access constant Cannot reference converted lead • Update Contact instead. No such column 'Jigsaw' on entity 'Lead • Avoid BE side fields changes Accessing Data from Ruby (5/5)