Questions tagged [ruby]
The ruby tag has no usage guidance.
45
questions
1
vote
1
answer
44
views
Heroku ECONNREFUSED with most console commands
I'm on Ubuntu 20, working on a Rails 6.05 project with a Postgres DB. I've succesfully created a Heroku app using heroku create appname and then deployed the Rails app using git push heroku master.
...
0
votes
1
answer
21
views
How can I find out if there are any object that has specific value? [duplicate]
I am using rest api and trying to find out if there is a certain object that have certain value I gave.
to be precise, I want to know if there is any object that has ManagementNo__c which has 113 in ...
0
votes
1
answer
31
views
How I can find out the name of Query?
Currently I am working on a project that I am to connect my company's application to salesforce account.
Now, in order to know about salesforce, I am trying a tutorial of quick start.
And according to ...
0
votes
1
answer
544
views
{"error":"invalid_grant","error_description":"invalid assertion"} I want to send post request to Salesforce [closed]
I am trying to send post request to salesforce for Oauth by using JWT and I wrote it like the one below, but I got an error that says {"error":"invalid_grant","...
1
vote
0
answers
93
views
JWT authentication parameter error
I am currently working on the project that I am going to integrate the application of my company and salesforce.
In my case, it seemed that using the JWT for authentication is better. So, I wanted to ...
0
votes
0
answers
79
views
Cannot login to the sandbox app using JWT: invalid_grant: user hasn't approved this consumer (400)
so I generated and uploaded self-signed certificate, created an app, selected "Admin approved users are pre-authorized", added username role to approved list and wrote following code (using Ruby and ...
1
vote
2
answers
959
views
Ruby - OAuth 2.0 JWT Bearer Token Flow
I am following this document as I try to implement the Salesforce OAuth 2.0 JWT Bearer Token Flow. There are a number of steps involved and I have tried them over and over again but I keep getting {"...
1
vote
1
answer
466
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
0
answers
113
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
0
answers
127
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
1
answer
3k
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
1
answer
316
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
1
answer
502
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
0
answers
447
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
1
answer
117
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
1
answer
2k
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 ...
2
votes
2
answers
743
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
1
answer
57
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
2
answers
363
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
0
answers
161
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
1
answer
476
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
1
answer
1k
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
1
answer
133
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
2
answers
189
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
1
answer
203
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
1
answer
163
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
0
answers
172
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
0
answers
204
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
1
answer
134
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
0
answers
339
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
1
answer
310
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
2
answers
886
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
1
answer
162
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
0
answers
101
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
0
answers
228
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
1
answer
599
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
1
answer
196
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
1
answer
667
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
3
answers
9k
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
2
answers
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
2
answers
773
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 ...
6
votes
2
answers
5k
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
5
answers
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
2
answers
595
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
3
answers
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 '...