Questions tagged [ruby]

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. ...
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 ...
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 (...
1
vote
1answer
1k views

Attach File/Attachment to Custom Object through API?

I need to upload pdfs to some custom objects in SF through the API. Right now I am using restforce in ruby to interact with the API, but I can't seem to figure out how to (neither in restforce nor in ...
0
votes
1answer
223 views

Ruby: TriggeredSend - Send Email & Add Subscriber to List -or- DE

I am trying to setup a Triggered Send within my Rails-5.1.1 app. It is transactional upon creating an object. I am using the Marketing Cloud SDK formally named as Fuel SDK. Objective: Add Subscriber ...
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. ...
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 ...
2
votes
1answer
1k views

SAML Assertion Signature Validation Error For Community SSO + Custom IDP

I'm attempting to implement SSO for a salesforce sandbox Community instance with a custom Rails app as the IdP, and no matter how I format the SAML Assertion after login I'm redirected to the error ...
1
vote
2answers
533 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 ...
1
vote
1answer
45 views

Restforce Assistance

I'm new to ruby and I've managed to connect my SalesForce app via oauth. I was following a couple of examples in Restforce. And I made the following query: accounts = $cliente.query("select id from ...
1
vote
2answers
242 views

Salesforce download Document Body with Ruby and restforce gem

i try to download a file from Salesforce using restforce with Ruby. https://github.com/ejholmes/restforce sf_template = client.find("Document", "015b0000002oWdu") i get my document, but when i try ...
1
vote
1answer
431 views

ExactTarget Email List Programmatic Bulk Import

Here is the usecase: I have a rails based app which has powerful segmentation capability, this is much more useful than what's provided by ExacttTarget. Here is what I am looking to do: Create a list ...
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. ...
3
votes
1answer
357 views

Marketing Cloud Rest API Ruby add rows to Data Extension

I'm pretty new to Marketing Cloud. I'm trying to add some data to a data extension. I'm able to connect and get a token just fine but when I try to send even a blank request to what should be a valid ...
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
80 views

How do I get data about a sent email from the FuelSDK (or otherwise)?

Calling FuelSDK::SentEvent.new returns a SendID. How do I use that to find information about the Email that was sent by this send event? I don't see any equivalent client objects in FuelSDK-Ruby ...
2
votes
2answers
155 views

How do I fetch data for app users offline / nightly?

I want to build a Salesforce Marketing Cloud HubExchange app. The app will schedule a task periodically to process recent event tracking data for each user in the installed base. How do I access ...
1
vote
1answer
147 views

Upsert from Ruby FuelSDK Gem

The documentation for the FuelSDK-Ruby gem says that you can use the Put method to do an upsert. However, this method doesn't appear to be implemented. Is there a way to do an upsert using the FuelSDK-...
4
votes
1answer
159 views

Is DATABASEDOTCOM Ruby gem affected by SFDC dropping SSL3.0 support?

SFDC recently stated they will not support SSL3.0 any longer. Notification goes on to say currently supported browsers all use TLS by default so the users are safe. My concern is an external ruby ...
1
vote
0answers
165 views

How to fetch data from search list via API

We created a simple search list and saved it under "Saved Searches" which contains lots of user information. (` 5K users) I would like to retrieve user information (Name, Title ..) using an API call. ...
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
1answer
120 views

how do i link a Fuel SDK client to an account on mc.exacttarget.com?

I created an account on code@exacttarget that provides a client id and secret, but i don't get how i can use that to then access an account on mc.exacttarget.com. I'm trying to use the Fuel SDK (ruby ...
1
vote
0answers
278 views

Fuel SDK - Ruby Client - Delete a row from a data extension

I'm using the FuelSDK, ruby version. The retrieve rows function worked fine for me, but the function to remove a row from a data extension gives me an error. This is what I'm doing: client = ...
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 ...
0
votes
1answer
143 views

Retrieve group subscribers

Using the exacttarget API, how can one retrieve the subscribers for a group? There is a 'Subscribers' attribute on the 'Group' object, however when I include 'Subscribers' in the retrieve request I ...
1
vote
0answers
91 views

integration with ExactTarget using Fuelsdk-Ruby

Intergration with ExactTarget using fuelsdk, ruby 1.9.3. The integration works as well but we face with responses slowness. each response takes more than 10 seconds! Is this to be expected?
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 ...
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 ...
4
votes
1answer
160 views

Salesforce streaming API v 29.0 and Delete Action

I'm using streaming API v 29.0 + restforce gem. I created a push topic and subscribed to changes. If I create a record in Salseforce datebase via Salesforce web interface, I receive message when this ...
4
votes
1answer
581 views

Is it better to cache a large number of records on client side, or do multiple smaller requests to Salesforce?

In an application I'm developing in Ruby, I want to create a pagination system so that on the first page, the first 10 results show up, then the second 10 on the 2nd page, and so on. I know I can ...
4
votes
3answers
4k views

What characters do I need to escape when doing a SOQL query?

I'm attempting to create a Ruby on Rails application using Restforce, but the query method doesn't support prepared statements. So I need to escape each input that I put into the query myself. What ...
3
votes
2answers
3k views

How do I perform a query to the salesforce bulk API with the salesforce_bulk_api gem?

I'm trying to perform a bulk query to salesforce with the salesforce_bulk_api gem. I am connecting successfully and doing the query with no problems but I can't get the actual results. This is what I ...
1
vote
2answers
764 views

Authenticating Databasedotcom Gem

I am attempting to connect and authenticate a rails app with the databasedotcom gem I am following the tutorial here. But he doesn't mention some of the other considerations that your request must ...
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. ...
3
votes
2answers
516 views

Ruby : how to import contact to salseforce from a yaml file

I need to parse a yaml file and import it to salseforce contacts... I know how to create new users using the databasedotcom gem, but i don't want to create new users from a rails generated html form......
3
votes
3answers
2k views

SOAP API Request with body larger than 16 Kilobytes results in Timeout Exception

I stumbled upon an interesting limitation, it seems that SOAP API endpoint handles requests larger than 16Kb differently --- whenever body is larger than that request just times out. We're using '...