cost 302 ms
如何根據用戶登錄獲取紅寶石應用程序中的數據salesforce帳戶?

[英]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 ...

無法在Ruby中使用dabatasedotcom對象

[英]Cannot use dabatasedotcom objects with Ruby

我是Ruby的新手,正在嘗試使用database.com gem將應用程序與SalesForce連接。 我的目標是開發一個包裝Databasedotcom寶石的寶石,而不是在Rails項目中使用我自己的包裝寶石。 我已經用bundler安裝了databasedotcom gem。 ...

使用Databasedotcom-rails gem從RoR應用程序創建Salesforce自定義對象記錄時出現NoMethodError

[英]NoMethodError when creating a Salesforce custom object record from a RoR app with databasedotcom-rails gem

我在Salesforce中有一個名為Sales__c的自定義對象。 我正在嘗試使用databasedotcom-rails gem從RoR應用程序創建記錄。 控制者 視圖 #注意表單上沒有字段,只有提交按鈕。 路線 //////////////////// ...

限制SOQL查詢錯誤綁定變量僅在Apex代碼中允許

[英]Resforce SOQL Query Error Bind variables only allowed in Apex code

我有一個控制器操作,該操作需要獲取已登錄用戶(父級)的帳戶ID,並進行SOQL查詢以查找與父級關聯的所有子級。 我收到以下錯誤: 搜索后,我了解到我無法在SOQL查詢中使用變量。 但是,我正在尋找一些幫助,以便使用動態父ID在父上拉多個子。 我的查詢當前如下所示: ...

databasedotcom gem sobject問題

[英]databasedotcom gem sobject issue

我在Ruby on rails應用程序中使用databasedotcom gem來訪問我的Salesforce實例,但是在以正確的名稱空間創建sObject時遇到了一些麻煩。 我的數據庫中已經有一個名為User的模型,因此當我第一次嘗試從Salesforce獲取User對象的列表時,我正在獲取 ...

Rails中的顯示方法不適用於Databasedotcom gem

[英]Show method in Rails not working with databasedotcom gem

我正在嘗試使用稱為“貸款”的自定義對象設置基本的show方法。 在終端中,我看到正確的API請求隨對象一起返回,但是,我似乎無法在show.html.erb視圖中調用其任何屬性。 我嘗試在我的路線文件中使用resources:loans。 我已經成功地在市場視圖中調用了貸款對象上的“名稱” ...

Salesforce查詢更多紅寶石

[英]salesforce queryMore in ruby

我有5萬條記錄,我想以1000個批處理大小讀取所有記錄。 在sql中,我做一些limit 1000 offset x但是Salesforce不允許offset量大於2000時使用。 和 但是我得到這個錯誤 因此,如何在Salesforce SOQL應用offset 。 ...

嘗試顯示與Salesforce帳戶相關的所有聯系人

[英]Trying to show all contacts related to salesforce account

我正在使用databasedotcom gem將我的應用程序與salesforce進行同步,它完美地提取了所有帳戶的列表,但是我需要為每個帳戶建立主要聯系人,目前我有這個聯系人: 和@customer在我的控制器中定義為@customer = Account.find(params[:i ...

在Rails中未為此組織啟用REST API(使用databasedotcom gem的Salesforce API)

[英]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 ...

使用databasedotcom ruby​​ gem訪問Salesforce時,如何獲取特定用戶(或帳戶)的ActivityHistory

[英]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 ...

在沒有模型的情況下驗證電子郵件格式-Databasedotcom gem

[英]Validate email format without model - databasedotcom gem

我是Rails的新手,我使用的是salesforce gem,databasedotcom,因此沒有可以正常驗證電子郵件地址格式的模型,simple_form可以驗證狀態,但是輸入無效電子郵件時會出現以下錯誤: 這是控制器: 形式如下: 我需要添加類似“ if @ lea ...

提交表單databasedotcom-gem時在嵌套控制器上路由錯誤

[英]Routes error on nested controller when submitting form, databasedotcom-gem

我正在使用databasedotcom&databasedotcom-rails gem,以便從表單提交中獲取潛在客戶到Salesforce。 在將控制器嵌套在父級下之前,它一直是獨立工作的,現在當我按Submit時,出現以下路由錯誤: 這是我所有的代碼: ...

Ruby:獲取Salesforce oauth_token

[英]Ruby: Getting salesforce oauth_token

我有client_id和client_secret但要進行身份驗證,我需要oauth_token 。 如何使用Ruby on Rails獲得此令牌? 我嘗試了幾種選擇,但無法解決。 使用的寶石:databasedotcom 我嘗試了以下選項,但沒有響應https://gist.g ...

databasedotcom gem AssignmentRules

[英]databasedotcom gem AssignmentRules

我正在使用databasedotcom gem在我們的Web應用程序上生成Salesforce銷售線索。 我遇到的問題是,以這種方式創建銷售線索時,“分配規則”會正確觸發,並將銷售線索分配給所需的用戶,但是,沒有電子郵件發送給分配的用戶。 我發現通過Salesforce的評論對這個問 ...

在databasedotcom gem中使用多個訪問令牌

[英]using multiple access tokens with databasedotcom gem

用足夠的谷歌搜索(失敗!)后,我想到了在這里發布這個問題。 (有趣的是,SO在根據您用於問題的主題開始發布您的問題之前會顯示所有匹配的問題。但是沒有幫助:( 無論如何我的情況是: 通過登錄到其他組織來授權Rails應用並保存回來的access_token(AT),refresh ...

嘗試通過Ruby on Rails和databasedotcom向OAuth2和Salesforce.com進行身份驗證

[英]Trying to authenticate with OAuth2 and Salesforce.com with Ruby on Rails and databasedotcom

我正在嘗試使用databasedotcom gem通過Salesforce.com對我的應用程序進行身份驗證。 該文檔薄弱,我是OAuth的新手。 我已經在Salesforce.com中配置了我的應用程序,並擁有了我的秘密和密鑰。 我正在從我的環境中配置: 現在,我應該獲得一個令牌 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM