generate_fetchxml: Generate FetchXML from Arguments

Description Usage Arguments Note

View source: R/utils.R

Description

This function will generate a syntactically valid FetchXML for simple "SELECT" statements. If more complex ordering, filtering, etc. is needed, then the user should specify an exact FetchXML string.

Usage

1
generate_fetchxml(entity_name, attributes, all_attributes, page_size, top)

Arguments

entity_name

character; the name of one MS Dynamics CRM entity that the function is operating against (e.g. "Account", "Contact", "CustomObject__c")

attributes

character; one or more strings indicating attributes

all_attributes

logical; an indicator if all possible attributes should be returned for the entity. If TRUE this parameter will override the attributes parameter.

page_size

numeric; a number indicating the records per page that are returned. This is provided for performance improvements for queries returning a large number of records.

top

numeric; a number indicating the first N number of records that should be returned by the query. This behavior is similar to the LIMIT or TOP keyword in SQL.

Note

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


StevenMMortimer/rdynamicscrm documentation built on July 9, 2019, 11:37 a.m.