rforcecom.getObjectDescription出现错误,无法获取Salesforce数据表

时间:2019-03-11 16:52:21

标签: r salesforce

我使用此函数获取Campaign表的所有字段名称,但返回此错误 enter image description here

1 个答案:

答案 0 :(得分:0)

salesforcer包可以返回有关Salesforce中对象元数据的详细信息。这是一个示例:

library(tidyverse)
library(salesforcer)
sf_auth(username, password, security_token)

# retrieve a list of metadata about the Contact object
contact_object <- sf_describe_object('Contact')
#> $activateable
#> [1] "false"
#> 
#> $childRelationships
#> [1] "..."
#> 
#> $fields
#> [1] "..."

# retrieve a tbl_df of all fields on the Contact object
contact_fields <- sf_describe_object_fields('Contact')
#> # A tibble: 64 x 39
#>   aggregatable aiPredictionField autoNumber  ...
#>   <chr>        <chr>             <chr>     
#> 1 true         false             false     
#> 2 false        false             false     
#> 3 true         false             false
#> #...