Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 如何使用restforcem获取rubyonrails中salesforce帐户对象的所有相关数据_Ruby On Rails - Fatal编程技术网

Ruby on rails 如何使用restforcem获取rubyonrails中salesforce帐户对象的所有相关数据

Ruby on rails 如何使用restforcem获取rubyonrails中salesforce帐户对象的所有相关数据,ruby-on-rails,Ruby On Rails,我正在尝试使用restforce REST Api从salesforce获取所有用户数据。我有salesforce帐户对象。现在,我想获取与此帐户对象相关的所有数据。这是一个多步骤过程: 获取对象的列: # get the describe for the Account object account_columns = client.describe('Account') # => { ... } 运行普通查询: accounts = client.query("select #{a

我正在尝试使用restforce REST Api从salesforce获取所有用户数据。我有salesforce帐户对象。现在,我想获取与此帐户对象相关的所有数据。

这是一个多步骤过程:

  • 获取对象的列:

    # get the describe for the Account object
    account_columns = client.describe('Account')
    # => { ... }
    
  • 运行普通查询:

    accounts = client.query("select #{account_columns} from Account where Id = 'someid'")
    # => #<Restforce::Collection>
    
    account = accounts.first
    # => #<Restforce::SObject> 
    
  • 来源-

    account.Owner