No commit activity in last 3 years
No release in over 3 years
Rather than enforcing adherence to the sforce.com schema, RForce assumes you are familiar with the API. Ruby method names become SOAP method names. Nested Ruby hashes become nested XML elements.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.3

Runtime

>= 2.0.0
~> 1.4.4
>= 0
 Project Readme

rforce¶ ↑

DESCRIPTION:¶ ↑

RForce is a simple, usable binding to the SalesForce API.

FEATURES/PROBLEMS:¶ ↑

Rather than enforcing adherence to the sforce.com schema, RForce assumes you are familiar with the API. Ruby method names become SOAP method names. Nested Ruby hashes become nested XML elements.

SYNOPSIS:¶ ↑

binding = RForce::Binding.new \
  'https://www.salesforce.com/services/Soap/u/10.0'

binding.login \
  'email', 'password_with_token'

answer = binding.search \
  :searchString =>
    'find {McFakerson Co} in name fields returning account(id)'

account = answer.searchResponse.result.searchRecords.record
account = account.first if account.is_a? Array  

account_id = account.Id
account_id = account_id.first if account_id.is_a? Array

opportunity = [
               :type, 'Opportunity',
               :accountId, account_id,
               :amount, '10.00',
               :name, 'Fakey McFakerson',
               :closeDate, '2008-07-04',
               :stageName, 'Closed Won'
              ]

binding.create :sObject => opportunity

REQUIREMENTS:¶ ↑

  • Builder gem

  • A SalesForce Enterprise or Developer account

INSTALL:¶ ↑

  • sudo gem install rforce