Skip to content

matehuslucena/lead_create

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lead_create

This project uses:

  • Ruby: 2.0

  • Rspec: 3.3

  • databasedotcom: 1.3

  • Version: 1.0.3

lead_create is a gem to enable ruby applications to integrate with the SalesForce Leads.

If you use bundler, simply list it in your Gemfile, like so:

gem 'databasedotcom'

If you don’t use bundler, install it by hand:

gem install databasedotcom

After to install a GEM need create a file named config/databasedotcom.yml. In config/databasedotcom.yml you need insert the configuration, like so:

host: login.salesforce.com        # Use test.salesforce.com for sandbox
client_secret: 1234567890         # This is the Consumer Secret from Salesforce
client_id: somebigidthinghere     # This is the Consumer Key from Salesforce
sobject_module: SFDC_Models       # See below for details on using modules
debugging: true                   # Can be useful while developing
username: [email protected]
password: mypasswordplusmysecuritytoken

After set file config/databasedotcom.yml, you can use the GEM.

HOW TO USE?

If you can see the list of leads you have in salesforce, you can do this: LeadCreate.list_leads.

If you can save a new lead in your salesforce account, you can do this: LeadCreate.create(contact)

The object contact need to be this atributes: name, last_name, email, company, phone, website, job_title

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages