Parse data into XML format
build_soap_xml_from_list(
input_data,
operation = c("create", "retrieve", "update", "upsert", "delete", "undelete",
"emptyRecycleBin", "getDeleted", "getUpdated", "search", "query", "queryMore",
"convertLead", "merge", "describeSObjects", "setPassword", "resetPassword",
"findDuplicates", "findDuplicatesByIds"),
object_name = NULL,
fields = NULL,
external_id_fieldname = NULL,
root_name = NULL,
ns = character(0),
root = NULL
)
a data.frame
of data to fill the XML body
character
; a string defining the type of operation being
performed (e.g. "insert", "update", "upsert", "delete", "hardDelete",
"query", "queryall").
character
; the name of the Salesforce object that the
function is operating against (e.g. "Account", "Contact", "CustomObject__c").
character
; one or more strings indicating the fields to be returned
on the records
character
; string identifying a custom field on the
object that has been set as an "External ID" field. This field is used to reference
objects during upserts to determine if the record already exists in Salesforce or not.
character
; the name of the root node if created
named vector; a collection of character strings indicating the namespace definitions of the root node if created
XMLNode
; a node to be used as the root
a XML document