records_list_to_tbl: Extract tibble based on the "records" element of a list

View source: R/utils-query.R

records_list_to_tblR Documentation

Extract tibble based on the "records" element of a list

Description

This function accepts a list representing the parsed JSON recordset In this case the records are not nested, but can have relationship fields. Each element in the "records" element is bound to a single row after dropping the attributes and then returned as one complete tbl_df of all records.

Usage

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

Arguments

x

list; list of records parsed from JSON.

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 a data frame with each row representing a single element from the "records" element of the list.

Note

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


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