![](/img/trans.png)
[英]how to get data salesforce accounts in ruby app according to user login?
我正在使用databasedotcom gem。 我只能通過在config / database.yml文件中指定Client_id,client_secret,用戶名和密碼來獲取1個帳戶的數據。 但是我想根據用戶登錄獲取數據。 第一個用戶使用salesforce登錄后,他將從其sales ...
[英]how to get data salesforce accounts in ruby app according to user login?
我正在使用databasedotcom gem。 我只能通過在config / database.yml文件中指定Client_id,client_secret,用戶名和密碼來獲取1個帳戶的數據。 但是我想根據用戶登錄獲取數據。 第一個用戶使用salesforce登錄后,他將從其sales ...
[英]Cannot use dabatasedotcom objects with Ruby
我是Ruby的新手,正在嘗試使用database.com gem將應用程序與SalesForce連接。 我的目標是開發一個包裝Databasedotcom寶石的寶石,而不是在Rails項目中使用我自己的包裝寶石。 我已經用bundler安裝了databasedotcom gem。 ...
[英]NoMethodError when creating a Salesforce custom object record from a RoR app with databasedotcom-rails gem
我在Salesforce中有一個名為Sales__c的自定義對象。 我正在嘗試使用databasedotcom-rails gem從RoR應用程序創建記錄。 控制者 視圖 #注意表單上沒有字段,只有提交按鈕。 路線 //////////////////// ...
[英]Resforce SOQL Query Error Bind variables only allowed in Apex code
我有一個控制器操作,該操作需要獲取已登錄用戶(父級)的帳戶ID,並進行SOQL查詢以查找與父級關聯的所有子級。 我收到以下錯誤: 搜索后,我了解到我無法在SOQL查詢中使用變量。 但是,我正在尋找一些幫助,以便使用動態父ID在父上拉多個子。 我的查詢當前如下所示: ...
[英]databasedotcom gem sobject issue
我在Ruby on rails應用程序中使用databasedotcom gem來訪問我的Salesforce實例,但是在以正確的名稱空間創建sObject時遇到了一些麻煩。 我的數據庫中已經有一個名為User的模型,因此當我第一次嘗試從Salesforce獲取User對象的列表時,我正在獲取 ...
[英]Show method in Rails not working with databasedotcom gem
我正在嘗試使用稱為“貸款”的自定義對象設置基本的show方法。 在終端中,我看到正確的API請求隨對象一起返回,但是,我似乎無法在show.html.erb視圖中調用其任何屬性。 我嘗試在我的路線文件中使用resources:loans。 我已經成功地在市場視圖中調用了貸款對象上的“名稱” ...
[英]Salesforce REST API: Databasedotcom gem to upload attachments
我在我的Ruby on Rails應用程序中使用Heroku的Databasedotcom gem與Salesforce的REST API進行交互。 我可以通過API成功創建帳戶,但是添加附件時遇到問題。 我發現了這個建議https://github.com/heroku/databased ...
[英]salesforce queryMore in ruby
我有5萬條記錄,我想以1000個批處理大小讀取所有記錄。 在sql中,我做一些limit 1000 offset x但是Salesforce不允許offset量大於2000時使用。 和 但是我得到這個錯誤 因此,如何在Salesforce SOQL應用offset 。 ...
[英]Trying to show all contacts related to salesforce account
我正在使用databasedotcom gem將我的應用程序與salesforce進行同步,它完美地提取了所有帳戶的列表,但是我需要為每個帳戶建立主要聯系人,目前我有這個聯系人: 和@customer在我的控制器中定義為@customer = Account.find(params[:i ...
[英]The REST API is not enabled for this Organization (Salesforce API using databasedotcom gem) in Rails
最近,我通過databasedotcom gem將Salesforce API集成到了我的Rails 3.2應用程序中。 另外,還有一個后台作業用於數據同步。 登錄我的專業版Salesforce帳戶后,Resque作業失敗,並顯示此錯誤... 即使是專業版,我也將如何啟用AP ...
[英]Where to get client_id and client_secret of Salesforce API for Rails 3.2.11
我一直在關注以下教程: http : //wiki.developerforce.com/page/Accessing_Salesforce_Data_From_Ruby 但是,我堅持你需要提供密鑰的部分: 我在哪里可以獲得client_secret和client_id 。 來自 ...
[英]When using databasedotcom ruby gem to access salesforce, how do I get the ActivityHistory for a particular User (or Account)
對於大多數對象,它們支持諸如find_by _...之類的查詢。但是, 返回不支持查詢的類。 當我嘗試運行ActivityHistory.query(“ anything”)時 我知道了 Databasedotcom :: SalesForceError:實體類型Activ ...
[英]Validate email format without model - databasedotcom gem
我是Rails的新手,我使用的是salesforce gem,databasedotcom,因此沒有可以正常驗證電子郵件地址格式的模型,simple_form可以驗證狀態,但是輸入無效電子郵件時會出現以下錯誤: 這是控制器: 形式如下: 我需要添加類似“ if @ lea ...
[英]Routes error on nested controller when submitting form, databasedotcom-gem
我正在使用databasedotcom&databasedotcom-rails gem,以便從表單提交中獲取潛在客戶到Salesforce。 在將控制器嵌套在父級下之前,它一直是獨立工作的,現在當我按Submit時,出現以下路由錯誤: 這是我所有的代碼: ...
[英]Ruby: Getting salesforce oauth_token
我有client_id和client_secret但要進行身份驗證,我需要oauth_token 。 如何使用Ruby on Rails獲得此令牌? 我嘗試了幾種選擇,但無法解決。 使用的寶石:databasedotcom 我嘗試了以下選項,但沒有響應https://gist.g ...
[英]databasedotcom gem AssignmentRules
我正在使用databasedotcom gem在我們的Web應用程序上生成Salesforce銷售線索。 我遇到的問題是,以這種方式創建銷售線索時,“分配規則”會正確觸發,並將銷售線索分配給所需的用戶,但是,沒有電子郵件發送給分配的用戶。 我發現通過Salesforce的評論對這個問 ...
[英]Databasedotcom gem : Retrieve user info based on session id
我正在使用databasedotcom gem與Salesforce進行交互。 我能夠獲取sObject(Account,Contact,Lead)信息。 誰能告訴我如何通過傳遞Salesforce會話ID來獲取用戶信息。 以下代碼用於從salesforce獲取帳戶詳細信息,但我需要根 ...
[英]Databasedotcom materialize a custom object in Ruby
我想以JSON形式返回SOQL查詢的結果,但是數據似乎以字符串形式返回。 如何將這些結果具體化為JSON對象以在Restful服務中使用? ...
[英]using multiple access tokens with databasedotcom gem
用足夠的谷歌搜索(失敗!)后,我想到了在這里發布這個問題。 (有趣的是,SO在根據您用於問題的主題開始發布您的問題之前會顯示所有匹配的問題。但是沒有幫助:( 無論如何我的情況是: 通過登錄到其他組織來授權Rails應用並保存回來的access_token(AT),refresh ...
[英]Trying to authenticate with OAuth2 and Salesforce.com with Ruby on Rails and databasedotcom
我正在嘗試使用databasedotcom gem通過Salesforce.com對我的應用程序進行身份驗證。 該文檔薄弱,我是OAuth的新手。 我已經在Salesforce.com中配置了我的應用程序,並擁有了我的秘密和密鑰。 我正在從我的環境中配置: 現在,我應該獲得一個令牌 ...