remove_empty_linked_object_cols: Remove NA Columns Created by Empty Related Entity Values

View source: R/utils.R

remove_empty_linked_object_colsR Documentation

Remove NA Columns Created by Empty Related Entity Values

Description

This function will detect if there are related entity columns coming back in the resultset and try to exclude an additional completely blank column created by records that don't have a relationship at all in that related entity.

Usage

remove_empty_linked_object_cols(dat, api_type = c("SOAP", "REST"))

Arguments

dat

data; a tbl_df or data.frame of a returned resultset

api_type

character; one of "REST", "SOAP", "Bulk 1.0", or "Bulk 2.0" indicating which API to use when making the request.

Value

tbl_df; the passed in data, but with the object columns removed that are empty links to other objects.


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