rforcecom.upsert: Upsert a record

Description Usage Arguments Value Author(s) Examples

View source: R/rforcecom.upsert.R

Description

Upsert a record

Usage

1
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.

Author(s)

Takekatsu Hiramura <thira@plavox.info>

Examples

1
2
3
4
5
6
7
8
9
## 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)

RForcecom documentation built on May 1, 2019, 6:31 p.m.