xml_drop_and_unlist: Drop 'type' and 'Id' attributes on XML queried records and...

View source: R/utils-query.R

xml_drop_and_unlistR Documentation

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

Value

character; a named vector of strings from the parsed XML. Nested elements have their hierarchy represented by a period between the element names at each level.

Note

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


salesforcer documentation built on March 18, 2022, 6:26 p.m.