Questions tagged [databasedotcom-gem]

42 questions
1
vote
1 answer

Trying to authenticate with OAuth2 and Salesforce.com with Ruby on Rails and databasedotcom

I am trying to use the databasedotcom gem to authenticate my application through Salesforce.com. The documentation is weak and I am new at OAuth. I have configured my app in Salesforce.com and have my secret and key. I am configuring from my…
jhamm
  • 24,124
  • 39
  • 105
  • 179
1
vote
0 answers

Databasedotcom gem and dbdc_controller error

I've attempted to deploy the dbdc_controller project (https://github.com/dburkes/dbdc_controller) to Heroku, and am getting an error when pulling up the index page for users: def index @users = User.all end The logs simply show…
aj2taylo
  • 41
  • 4
0
votes
1 answer

How to use databasedotcom AggregateResult?

How do I use the AggregateResult I receive from a query using the databasedotcom gem? quer = "SELECT SUM(MRR__c) FROM Account WHERE Type = 'Customer' AND Go_Live_Date__c > 2012-01-01 GROUP BY Producer__c" ff = client.query…
mmlac
  • 1,091
  • 1
  • 9
  • 24
0
votes
2 answers

Salesforce Bulk Api gem?

I have read about databasedotcom gem but it doesn't support bulk api. Are there any salesforce bulk api gem that uses Oauth2 for login?
Bhushan Lodha
  • 6,824
  • 7
  • 62
  • 100
0
votes
1 answer

Salesforce error - "invalid cross reference id"

I am developing a Rails app using OmniAuth, OmniAuth-salesforce and this gem: https://github.com/heroku/databasedotcom I am hardcoding the "client_id" and "client_secret" into my app. Then for each user that authenticates with Saleforce, I am…
Matt Fordham
  • 3,147
  • 10
  • 34
  • 51
0
votes
1 answer

SalesForce databasedotcom gem conflict with ActiveRecord

I encountered strange problem - when Im trying to get User information from SalesForce using databasedotcom gem like this: owner = client.find("User", deal_from_sf.OwnerId) I get ActiveRecord error ActiveRecord::RecordNotFound for User,…
makaroni4
  • 2,281
  • 1
  • 18
  • 26
0
votes
1 answer

how to get data salesforce accounts in ruby app according to user login?

I am using databasedotcom gem. I am able to get data for 1 account only by specifying Client_id, client_secret, username and password in config/database.yml file. but i want to get data according to user login. 1st user login with salesforce he will…
0
votes
1 answer

Cannot use dabatasedotcom objects with Ruby

I'm new to Ruby and I'm trying to connect my application with SalesForce using the database.com gem. My goal is to develop a gem that wraps the Databasedotcom gem, an than use my own wrapper gem in a rails project. I've installed the databasedotcom…
fabioresner
  • 915
  • 14
  • 21
0
votes
1 answer

NoMethodError when creating a Salesforce custom object record from a RoR app with databasedotcom-rails gem

I have a custom object in Salesforce called Sales__c. I am trying to create a record from a RoR app using the databasedotcom-rails gem. Controller Class SalesController < ApplicationController include Databasedotcom::Rails::Controller def new …
Lut
  • 1,363
  • 1
  • 14
  • 30
0
votes
1 answer

Resforce SOQL Query Error Bind variables only allowed in Apex code

I have a controller action that needs to take the Account ID of the logged in user (parent) and make a SOQL query to find all of children associated with the parent. I receive the following error: Bind variables only allowed in Apex code After…
Questifer
  • 1,113
  • 3
  • 18
  • 48
0
votes
1 answer

Show method in Rails not working with databasedotcom gem

I'm trying to setup a basic show method with a custom object called 'loan'. In my terminal I see the proper API request coming back with the object, however, I can't seem to call any of its attributes in the show.html.erb view. I've tried using…
0
votes
1 answer

salesforce queryMore in ruby

I have 50K records and i want to fetch all records in 1000 batch size. In sql,i do something like limit 1000 offset x but salesforces doesn't allow offset when it is greater than 2000. To overcome this problem, i used this trick client.query(" …
Paritosh Piplewar
  • 7,982
  • 5
  • 26
  • 41
0
votes
2 answers

Trying to show all contacts related to salesforce account

I'm using the databasedotcom gem to sync my app with salesforce, it pulls a list of all accounts perfectly, but I need to have a primary contact for each account, I currently have this:

License Contact: <%=…

Carla Dessi
  • 9,086
  • 9
  • 39
  • 53
0
votes
1 answer

When using databasedotcom ruby gem to access salesforce, how do I get the ActivityHistory for a particular User (or Account)

For most sobjects, they support queries such as find_by_... etc. However, client.materialize("ActivityHistory") returns a class that does not support query. When I try to run ActivityHistory.query("anything") I…
0
votes
1 answer

Validate email format without model - databasedotcom gem

I am new to Rails and I am using the salesforce gem, databasedotcom so there are is no model where I would normally validate the email address format, simple_form is validating presence but this error when an invalid email is…
Dan Mitchell
  • 844
  • 2
  • 15
  • 34