This function takes the name of an object in Salesforce and returns a description of the fields on that object by returning a tibble with one row per field.
sf_describe_object_fields(object_name)
character
; the name of the Salesforce object that the
function is operating against (e.g. "Account", "Contact", "CustomObject__c").
A tbl_df
containing one row per field for the requested object.
The tibble only contains the fields that the user can view, as defined by the user's field-level security settings.
if (FALSE) {
acct_fields <- sf_describe_object_fields('Account')
}