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)
• 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)
Accessing Salesforce Data from Ruby (http://wiki.developerforce.com/page/Accessing_Salesforce_Data_From_Ruby) • Integrating with Force.com (youtube, wiki) • Object Reference for Salesforce and Force.com • Databasedotcom (http://rubydoc.info/gems/databasedotcom) • Insights 2012/12/8
Avoid exposing account password in code. • Revoke anytime without side effects. • How • Concept from Digging Deeper into OAuth 2.0 • Build-Mobile-Apps-in-the-Cloud-with-Omniauth,-Httparty-and-Force.com • Never tried - Introduction to the databasedotcom-oauth2 Gem References – Insight (3/4)