Questions tagged [databasedotcom-gem]
42 questions
11
votes
2 answers
Where to get client_id and client_secret of Salesforce API for Rails 3.2.11
I've been following a tutorial from: http://wiki.developerforce.com/page/Accessing_Salesforce_Data_From_Ruby
But, I'm stuck with the part where you need to supply the keys:
host: login.salesforce.com # Use test.salesforce.com for…

xirukitepe
- 1,575
- 7
- 26
- 54
5
votes
2 answers
The REST API is not enabled for this Organization (Salesforce API using databasedotcom gem) in Rails
I recently integrated Salesforce API via databasedotcom gem to my Rails 3.2 app.
Also, there's a background job for the synchronization of data.
Upon, logging in my Professional edition Salesforce account, the Resque job failed and it displayed this…

xirukitepe
- 1,575
- 7
- 26
- 54
4
votes
2 answers
RoR Use 2 different databases with active record adapter? same tablenames
Currently I am developing an rails project to connect the database from salesforce.com with our SQL server. Atm we use the gems 'mysql2' for the sql part and 'databasedotcom'
+ 'databasedotcom-rails' for the salesforce part.
Our problem ist, that…

ThommyH
- 310
- 2
- 6
- 15
3
votes
1 answer
Authentication fails in databasedotcom
I am trying to adopt databasedotcom gem, but couldn't get beyond the authentication. Here is what I did (after installing databasedotcom gem):
rails c (or irb then require 'databasedotcom')
client=Databasedotcom::Client.new :client_id => 'foo',…

Tony Jiang
- 442
- 5
- 16
2
votes
1 answer
Salesforce REST API: Databasedotcom gem to upload attachments
I'm using Heroku's Databasedotcom gem to interact with Salesforce's REST API in my Ruby on Rails app. I can successfully create Accounts via the API, but I'm having trouble adding attachments. I've found this suggestion…

oregontrail256
- 657
- 1
- 6
- 14
2
votes
0 answers
Querying from 2 related Salesforce objects using ruby databasedotcom gem
I have a php script that accesses some salesforce objects via soql, and I'm rewriting it to ruby. To understand my problem, assume that I have 2 salesforce custom objects that are associated with a parent-to-child relation.
Using the Force.com…

Hernan Velasquez
- 2,770
- 14
- 21
2
votes
1 answer
Ruby: Getting salesforce oauth_token
I have client_id and client_secret but to authenticate, i need oauth_token. How do I get this token using Ruby on Rails? I tried with few option but could not work out.
Gem used : databasedotcom
I tried the below option but it is not…

Muzaffer
- 196
- 1
- 5
- 13
2
votes
1 answer
How do I get write-access through Salesforce REST API?
I am currently attempting to access a salesforce.com database via Ruby and the databasedotcom-gem. I followed the readme here: https://github.com/heroku/databasedotcom
I was able to connect to the database and to access a contact, and find that…

aastin2
- 65
- 5
1
vote
4 answers
how to insert 200 records via a single Api call using bulk api in salesforce
How do i add multiple records in a single api call via the bulk api using the databasedotcom gem ? right now i using the normal activerecord type methods to insert which takes one api call per record

yatish mehta
- 905
- 1
- 10
- 25
1
vote
1 answer
Session expired or invalid (Ruby databasedotcom gem)
I am using salesforce rest api to access the salesforce account from my rails app using databasedotcom gem.I created a remote access app and got the key and the id. I was able to authenticate the user and get the auth_token, instance_url and all…

Bhushan Lodha
- 6,824
- 7
- 62
- 100
1
vote
0 answers
How to create Custom fields with Sales-force Rest Api
I am having a requirement to create contacts using Salesforce-Bulk-API in salesforce account. My question is can we also create custom fields for Contact object in salesforce using bulk API?
salesforce = SalesforceBulkApi::Api.new(@client)
…

Sonam Shah
- 41
- 6
1
vote
1 answer
databasedotcom gem sobject issue
I am using the databasedotcom gem in a Ruby on rails app to access my Salesforce instance but I am having some trouble getting an sObject to be created under the correct namespace. I already have a model called User in my database, so when I first…

user3831214
- 891
- 1
- 6
- 7
1
vote
0 answers
ActiveRecord::StatementInvalid: Could not find table 'Roles'
I am trying to access salesforce.com using the databasedotcom gem. I downloaded noeticpenguin's databasedotcom-demo program from github to get familiar with the gem but after inserting the appropriate username, password, and security code and…

TaiwanTimmy
- 177
- 1
- 1
- 11
1
vote
1 answer
databasedotcom gem AssignmentRules
I am using the databasedotcom gem to generate Salesforce Leads on our web app.
The issue I am having is when the Lead is created in this way, the Assignment Rule fires correctly and assigns the Lead to the desired users, however, no email is sent to…

tagCincy
- 1,589
- 10
- 20
1
vote
0 answers
Custom database.com objects ( ..."__c") and databasedotcom-rails
We are trying to move an existing RoR app to database.com & heroku using the databasedotcom and databasedotcom-rails gems. However, on database.com the API name of Custom Objects MUST end with "__c" and we are finding this is breaking the existing…

user1546124
- 61
- 1
- 2