Learn R Programming

RForcecom (version 1.1)

rforcecom.upsert: Upsert a record

Description

Upsert a record

Usage

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

Arguments

session
Session data. It can be retrieve 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.

Examples

Run this code
## Not run: 
#  # Upsert a record
#  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)
#  ## End(Not run)

Run the code above in your browser using DataLab