The tag has no usage guidance.

learn more… | top users | synonyms

6
votes
1answer
231 views

How does query() API call count against my daily limit?

My organization is hitting the daily API call limit and -in order to optimize our use of Salesforce- I'm trying to understand how Salesforce counts API calls. The count for REST methods is pretty ...
1
vote
0answers
34 views

Enable Lead field history tracking via api

I am using ruby gem restforce for salesforce api implementation. I am not finding a way to enable the Lead history tracking using api. Where as I can retreive the history if enabled from dashboard. ...
1
vote
1answer
67 views

Get record count using restforce

I'm running this query with restforce gem: SCHEDULER.every '2m' do |job| synergy = results results = client.query("SELECT Count(Id) FROM Opportunity Where Type='New Business'") send_event('...
0
votes
0answers
15 views

Restrict app permissions to reading Contacts only

We have a Rails application where the users are authenticated with the Devise gem. We want to add a feature "invite your contact" so the user can select the contacts from his Salesforce and send an ...
0
votes
0answers
40 views

omniauth-salesforce returns invalid_credentials even though user successfully logged in

I am trying to allow users to use salesforce to authenticate. I am using the ruby gem omniauth-salesforce. The user clicks my login using Salesforce button, they are redirected to the salesforce ...
1
vote
1answer
67 views

Restricting users to access rails app authenticated via Salesforce

We are having a rails app and the authentication is based on Salesforce OAuth. Salesforce OAuth is used as our app requires salesforce objects. When we create a connected app in salesforce and use it ...
1
vote
1answer
37 views

Undefined default value for custom accounts fields

I have a custom field in accounts section of salesforce. As far as I have seen under its configuration, there is no default value set for this field but whenever a new account is created, the value is ...
0
votes
0answers
102 views

Restforce using wrong OAuth base URL during reauthentication?

I'm using Restforce to authorize via OAuth2 in a Rails app. After the oauth_token expires, when creating a new Restforce client, during the attempt to re-authorize via Restforce's authenticate!, it ...
1
vote
1answer
72 views

How to set Local Time when creating lead through API

I have a rails app that needs to occasionally add leads to our salesforce account. I got it to work just fine using the databasedotcom gem. Just one thing isn't working correctly, when I add a lead ...
1
vote
1answer
74 views

API Call Count Limit with Ruby on Rails App

We have a Ruby on Rails application that query data from Salesforce and displays the data to about 5 different public static pages. Our daily limit of API call is 15000. We have about 1000 users ...
1
vote
1answer
250 views

How to escape Salesforce search query

I'm using the Salesforce ruby gem to do the following @client.search("FIND {#{@email}}") @email returns the user's email address. During testing, I had an email address like test+test@example.com ...
0
votes
0answers
89 views

Mapping Rails app users with Salesforce Contact records

I have a rails app connecting to Salesforce through restforce gem. I am trying to map Rails users with Salesforce contact records—so when they log in to my rails app it pulls the record from ...
1
vote
1answer
229 views

How best to secure client_id + secret using - Rails + Restforce

I've successfully managed to set up an app using my developer account - it is currently making use of Ruby on Rails 4.2.beta2, ejholmes most excellent gem restforce and the very helpful tutorial and ...
2
votes
0answers
118 views

What is the best way to handle an Outbound Message with Ruby on Rails?

I have an outbound message being set into a Ruby on Rails Application. What is the best way to handle an incoming message? I have read a few posts that suggest using a gem such as Savon to handle the ...
1
vote
0answers
116 views

Rails form that saves data to Salesforce and local DB

I have a user registration form that requires certain fields to be saved to different locations. Fields such as email and name need to be used to create a new salesforce object (Account). Email, ...
2
votes
2answers
218 views

User signup Exact Target (Ruby)

I have been trying to find examples of using the Savon gem with Rails to connect to the SOAP endpoint. Before Exact Target recomended the Fuel SDK but this doesn't seem to be supported anymore. It ...
3
votes
1answer
265 views

Issues with a Query within the main Query using DatabaseDotcom Ruby gem

I'm having a issue with pulling the data out of what would be a array of object data in my SFDC query. Im using the databasedotcom gem. Code def self.data_query #@client is defined at a class ...
1
vote
2answers
461 views

Ruby on Rails Example

I have a Rails app from which I would like to convert a lead and merge it with an existing account. Does anyone have some sample code using Ruby? I have found C# and Java examples and understand the ...
4
votes
1answer
480 views

Using Restforce gem with SalesForce API and Oauth 2.0

I'm trying to use Restforce (https://github.com/ejholmes/restforce) to set up integration with my Rails app to SalesForce's API using Oauth 2.0. Restforce describes the initialization process as ...
1
vote
0answers
171 views

cannot update custom salesforce object with databasedotcom and databasedotcom-rails gems

I am attempting to use the databasedotcom and databasedotcom-rails gems as part of an app I'm building in ruby on rails and for some reason I am getting an error when attempting to update custom ...
2
votes
0answers
108 views

Filter Not Working For List

I'm trying to start using the Fuel SDK in Rails, but I can't seem to get a simple filter to work. Retrieving without a filter works fine, and returns the whole set (all 36 or whatever lists). I need ...
0
votes
1answer
207 views

Problem using Salesforce API over OAuth with Rails

I use the databasedotcom gem, and at first everything works fine (I am able to list Salesforce resources and perform queries on them), but then at random it drops the connection and gives me ...
2
votes
1answer
380 views

Best way to manage Custom Object layouts through API?

I have a Ruby on Rails application. I am asking the user for the object name that they use for invoices, i.e. "Invoice__c". With use of the metaforce gem the app creates the field "PDF_Link__c" on ...
5
votes
2answers
3k views

REST API: How to retrieve active values for picklist?

I am trying to access just the "Selected" picklist values for a field using the REST API via the databasedotcom Ruby gem. In the normal SFDC interface, a user can navigate to "Campaigns > Record ...
4
votes
4answers
4k views

What's the best gem for calling into a Salesforce org from a Ruby on Rails app?

I am going to be doing some work connecting a Ruby on Rails app into a Salesforce org to create some new data. Right now there isn't any complex logic, just straight forward data sending into SFDC. ...