parse_report_detail_rows {salesforcer} | R Documentation |
Format the detailed data from the "T!T" fact map in a tabular report
Description
This function accepts a list that is directly returned by the API and further
parses it to return a single tbl_df
representing the detail rows and
columns of the report without any filters, aggregates, or totals.
Usage
parse_report_detail_rows(
content,
fact_map_key = "T!T",
labels = TRUE,
guess_types = TRUE,
bind_using_character_cols = deprecated()
)
Arguments
content |
|
fact_map_key |
|
labels |
|
guess_types |
|
bind_using_character_cols |
|
Value
tbl_df
; a data frame representing the detail rows of a parsed
report result HTTP response where the rows represent each row in the report
and the columns represent the detail columns.
Note
Below are the fact map key patterns for three report types:
- TABULAR
T!T
: The grand total of a report. Both record data values and the grand total are represented by this key.- SUMMARY
<First level row grouping_second level row grouping_third level row grouping>!T
: T refers to the row grand total.- MATRIX
<First level row grouping_second level row grouping>!<First level column grouping_second level column grouping>.
Each item in a row or column grouping is numbered starting with 0. Here are some examples of fact map keys:
- 0!T
The first item in the first-level grouping.
- 1!T
The second item in the first-level grouping.
- 0_0!T
The first item in the first-level grouping and the first item in the second-level grouping.
- 0_1!T
The first item in the first-level grouping and the second item in the second-level grouping.
This function is meant to be used internally. Only use when debugging.