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

xml_drop_and_unlist

Drop type and Id attributes on XML queried records and unlist


Description

This function will detect if there are metadata fields returned by the SOAP API XML from sf_query and remove them as well as unlisting (not recursively) to unnest the record's values. Only tested on two-level child-to-parent relationships. For example, for every Contact (child) record return attributes from the Account (parent) as well (SOQL = "SELECT Name, Account.Name FROM Contact")

Usage

xml_drop_and_unlist(x)

Arguments

x

list; a list of xml content parsed into a list by xml2

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.