答案 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
#> #...