Auxiliary for Controlling Calls to Salesforce APIs
Typically only used internally by functions when control parameters are passed
through via dots (...), but it can be called directly to control the behavior
of API calls. This function behaves exactly like glm.control
for the glm
function.
sf_control( AllOrNoneHeader = list(allOrNone = FALSE), AllowFieldTruncationHeader = list(allowFieldTruncation = FALSE), AssignmentRuleHeader = list(useDefaultRule = TRUE), DisableFeedTrackingHeader = list(disableFeedTracking = FALSE), DuplicateRuleHeader = list(allowSave = FALSE, includeRecordDetails = FALSE, runAsCurrentUser = TRUE), EmailHeader = list(triggerAutoResponseEmail = FALSE, triggerOtherEmail = FALSE, triggerUserEmail = TRUE), LocaleOptions = list(language = "en_US"), MruHeader = list(updateMru = FALSE), OwnerChangeOptions = list(options = list(list(execute = TRUE, type = "EnforceNewOwnerHasReadAccess"), list(execute = FALSE, type = "KeepAccountTeam"), list(execute = FALSE, type = "KeepSalesTeam"), list(execute = FALSE, type = "KeepSalesTeamGrantCurrentOwnerReadWriteAccess"), list(execute = FALSE, type = "SendEmail"), list(execute = FALSE, type = "TransferAllOwnedCases"), list(execute = TRUE, type = "TransferContacts"), list(execute = TRUE, type = "TransferContracts"), list(execute = FALSE, type = "TransferNotesAndAttachments"), list(execute = TRUE, type = "TransferOpenActivities"), list(execute = TRUE, type = "TransferOrders"), list(execute = FALSE, type = "TransferOtherOpenOpportunities"), list(execute = FALSE, type = "TransferOwnedClosedOpportunities"), list(execute = FALSE, type = "TransferOwnedOpenCases"), list(execute = FALSE, type = "TransferOwnedOpenOpportunities"))), QueryOptions = list(batchSize = 500), UserTerritoryDeleteHeader = list(transferToUserId = NA), BatchRetryHeader = list(`Sforce-Disable-Batch-Retry` = FALSE), LineEndingHeader = list(`Sforce-Line-Ending` = NA), PKChunkingHeader = list(`Sforce-Enable-PKChunking` = FALSE), api_type = NULL, operation = NULL )
AllOrNoneHeader |
|
AllowFieldTruncationHeader |
|
AssignmentRuleHeader |
|
DisableFeedTrackingHeader |
|
DuplicateRuleHeader |
|
EmailHeader |
|
LocaleOptions |
|
MruHeader |
|
OwnerChangeOptions |
|
QueryOptions |
|
UserTerritoryDeleteHeader |
|
BatchRetryHeader |
|
LineEndingHeader |
|
PKChunkingHeader |
|
api_type |
|
operation |
|
## Not run: this_control <- sf_control(DuplicateRuleHeader=list(allowSave=TRUE, includeRecordDetails=FALSE, runAsCurrentUser=TRUE)) new_contact <- c(FirstName = "Test", LastName = "Contact-Create") new_record <- sf_create(new_contact, "Contact", control = this_control) # specifying the controls directly and are picked up by dots new_record <- sf_create(new_contact, "Contact", DuplicateRuleHeader = list(allowSave=TRUE, includeRecordDetails=FALSE, runAsCurrentUser=TRUE)) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.