Update a record

Usage

rforcecom.update(session, objectName, id, fields)

Arguments

session
Session data. It can be retrieved from rforcecom.login().
objectName
An object name. (ex: “Account”, “Contact”, “CustomObject__c”)
id
Record ID to update. (ex: “999x000000xxxxxZZZ”)
fields
Sets of field name and its value. (ex: Name=”CompanyName”, Phone=”000-000-000″ )

Value

No data.

Example

objectName <- "Account"
id <- "999x000000xxxxxZZZ"
fields <- c(Phone="9999-9999-9999")
rforcecom.update(session, objectName, id, fields)