databasedotcom-gem

ROR error with Salesforce: The requested resource does not exist

[亡魂溺海] 提交于 2019-12-24 19:31:04
问题 I am using the Ruby Gem "databascdotcom" to integrate Salesforce in a Rails app and all works fine. But getting following error on first call to salesforce: **The requested resource does not exist** If I refresh (Ctrl + F5) the page again, it works fine without any error. Here is my code: def SalesForceFeed @oppID = params[:oppid] client = Databasedotcom::Client.new client.client_id #=> foo client.client_secret #=> bar client.authenticate :username => "foo@bar.com", :password =>

databasedotcom error on no record found

99封情书 提交于 2019-12-23 04:56:12
问题 Just started using databasedotcom gem and now stuck. When trying to find a record in Salesforce by Id, if the id/record doesn't exist, it produces the following error: "Provided external ID field does not exist or is not accessible:" If the Id does exist I am able to continue with my page fine. Here's my code: def search @account = Account.find(params[:id]) if @account.Id redirect_to new_user_registration_path(:id => @account.Id) elsif params[:id].to_s.present? and @account.nil? flash[:alert]

Salesforce error - “invalid cross reference id”

你说的曾经没有我的故事 提交于 2019-12-08 11:24:09
问题 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 capturing their oauth token, user id, and instance url. With all this, I am creating leads on their behalf. Everything works if the user is from the same account where I got the "client_id" and "client_secret". However, if I authenticate with a user from