salesforcer
backwards compatible version of
RForcecom::rforcecom.upsert
R/compatibility.R
rforcecom.upsert.Rd
rforcecom.upsert(session, objectName, externalIdField, externalId, fields)
list
; a list containing "sessionID"
,
"instanceURL"
, and "apiVersion"
as returned by
RForcecom::rforcecom.login
. This argument is ignored in all
backward compatible calls because the authorization credentials are stored
in an environment internal to the salesforcer package, so it is no longer
necessary to pass the session in each function call.
character
; the name of the Salesforce object that the
function is operating against (e.g. "Account", "Contact", "CustomObject__c").
An external Key's field name. (ex: "AccountMaster__c")
An external Key's ID. (ex: "999x000000xxxxxZZZ")
Field names and values. (ex: Name="CompanyName", Phone="000-000-000" )
NULL
if successful otherwise the function errors out