Upsert a record

Usage

rforcecom.upsert(session, objectName, externalIdField, externalId, fields)

Arguments

session
Session data. It can be retrieved from rforcecom.login().
objectName
An object name. (ex: “Account”, “Contact”, “CustomObject__c”)
externalIdField
An external Key’s field name. (ex: “AccountMaster__c”)
externalId
An external Key’s ID. (ex: “999x000000xxxxxZZZ”)
fields
Sets of field name and its value. (ex: Name=”CompanyName”, Phone=”000-000-000″ )

Value

No data.

Example

objectName <- "Account";
externalIdField <- "AccountMaster__c"
externalId <- "AM-00000151"
fields <- c(Name="ABC Network Company", Phone="3333-3333-3333")
rforcecom.upsert(session, objectName, externalIdField, externalId, fields)