salesforcer (version 0.2.2)

extract_records_from_xml_nodeset_of_records: Pulls out a tibble of record info from a nodeset of "records" elements

Description

This function accepts an xml_nodeset and formats each record into a single row of a tbl_df.

Usage

extract_records_from_xml_nodeset_of_records(
  x,
  object_name = NULL,
  object_name_append = FALSE,
  object_name_as_col = FALSE
)

Arguments

x

xml_nodeset; nodeset to have records extracted into a tbl_df.

object_name

character; a list of character strings to prefix each variable name in the event that we would like to tag the fields with the name of the object that they came from and/or store the object type as a separate column in the resultset.

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

tbl_df parsed from the supplied xml_nodeset