Questions tagged [ruby-on-rails]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
28 views

Get list of contacts associated with an opportunity

I created a ruby on rails service that emails a list of contacts when an opportunity is closed. To do this, I am trying to get all contacts associated with the Opportunity that was just closed. ...
0
votes
0answers
40 views

Getting a list of clients listening to Streaming API - Debugging Recurring 403::Unkown client errors for PushTopics

We have a Ruby-on-Rails application which has a "listener" using Restforce(and a Faye 0.8.9 client) for 4 Push Topics from Salesforce. All our PushTopics are API version 41 A few days ago the ...
1
vote
0answers
49 views

Staggered query of Salesforce bulk api from Ruby

I'm trying to do a staggered query using the Bulk API from a RoR app since the filter (WHERE App_Id__c IN :listOfIds) I'm using is over 4000 chars. The list of IDs I'm filtering on is quite long, so ...
4
votes
2answers
259 views

Updating record from Ruby on Rails to Salesforce

I'm using a Ruby gem that utilizes the Salesforce Bulk API and a few sidekiq workers to update records within Salesforce and am running into a UNABLE_TO_LOCK_ROW error. The issue stems from the ...
1
vote
2answers
146 views

Salesforce Bulk API Unable to lock row

I'm currently using the Salesforce Bulk API within a Rails app to update a custom object in Salesforce. This works fine when I send a single record through, but when I batch in sets of 200, I get ...
0
votes
1answer
37 views

xcode and heroku

Can we use heroku git with xcode source control? I tried using ssh I get following error. failed to start SSH session: Unable to exchange encryption keys Also it could not authenticate using user name ...
2
votes
2answers
83 views

Why would I be getting redirected on an authentication request (Rails app)?

tl;dr - I'm confused about a) why I can't access the our new Sandbox form the API and b) why rather than getting an authorisation error I'm getting redirected. We've just set up a new SF sandbox, and ...
0
votes
0answers
197 views

Concurrency violation: the UpdateCommand affected 0 of the expected 1 records

I have developed a Rails app with FuelSDK-Ruby gem which will create / update the Data Extension records in Marketing Cloud. On updating the records in Data Extension, Marketing Cloud responds with ...
0
votes
1answer
19 views

What are the charges if I host my chatbot in apps exchange

I have build a chatbot on python, what would be the cost to host it on Salesforce Apps Exchange
0
votes
1answer
108 views

Invalid JSON format

I am using JSON.Serialize to generate JSON from Apex class object then sending JSON request to Ruby on RAILS but I'm getting invalid JSON format because SALESFORCE is sending JSON with escape ...
1
vote
0answers
74 views

Alternative for event machines to process pushTopics?

We have a Ruby app which has a continuously running Rake task which listens for Salesforce pushTopics using the gem Restforce (and Faye). The Restforce gem is compatible with an older version of Faye (...
0
votes
1answer
77 views

Need inputs on analyzing rails code snippet for generating HMAC-SHA256 string in apex

I am trying to do an HMAC-SHA256 signature calculation in apex , but couldn't find clear instructions from the service provider on how to generate a request string for creating an HMAC-Signature. But ...
2
votes
1answer
178 views

Connection reset by peer - SSL_connect (Marketing cloud FuelSDK)

Since, yesterday I am getting SSL error when trying to access Marketing cloud APIs using FuelSDK-Ruby. It keep on throwing the two errors SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read ...
0
votes
0answers
279 views

Rails Restforce - Unable to access custom fields / objects

Im using the restforce gem to access my salesforce data. Im receiving errors whenever i try to acess any custom fields or objects. For example: I have a custom field Gender in my Contact object. ...
0
votes
0answers
313 views

FuelSDK Create Triggered Send API failing with error code 2

I tried to create a triggered send definition, but it's failing. The same code worked with a different account. Is it possible that the new account has Triggered Sends disabled somehow (is that is ...
1
vote
1answer
53 views

Nightly server job to put contacts in Salesforce - Use restforce gem with jwt bearer token authentication in rails application

I have a marketing site for my company and prospective clients will fill up a form to show interest. Now I need to put these people as contacts in my salesforce org. So want to create a rails job ...
1
vote
2answers
534 views

How to send a single-send email via exacttarget API via Ruby / Rails

My goal is to send an email to our contactus@company.com email address when someone fills out our contact us form. We were previously using sendgrid, but have switched over to using Salesforce ...
6
votes
1answer
1k 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
107 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
745 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('...
1
vote
1answer
141 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
51 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 ...
1
vote
1answer
82 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 ...
2
votes
1answer
192 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
610 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
272 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
558 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
180 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
173 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
287 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
299 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
765 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
1k 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
203 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
171 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
315 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
560 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
4k 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
5answers
5k 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. ...