Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

drop_attributes

Remove Salesforce attributes data from list


Description

This function removes elements from Salesforce data parsed to a list where the object type and the record url persists because they were attributes on the record and not part of the requested information.

Usage

drop_attributes(x, object_name_append = FALSE, object_name_as_col = FALSE)

Arguments

x

list; a list to be cleaned.

object_name_append

logical; whether to include the object type (e.g. Account or Contact) as part of the column names (e.g. Account.Name).

object_name_as_col

logical; whether to include the object type (e.g. Account or Contact) as a new column.

Value

list containing no 'attributes' elements.

Note

This function is meant to be used internally. Only use when debugging.


salesforcer

An Implementation of 'Salesforce' APIs Using Tidy Principles

v0.2.2
MIT + file LICENSE
Authors
Steven M. Mortimer [aut, cre], Takekatsu Hiramura [ctb], Jennifer Bryan [ctb, cph], Joanna Zhao [ctb, cph]
Initial release
2020-09-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.