rforcecom.query: Execute a SOQL

Description Usage Arguments Value Author(s) Examples

View source: R/rforcecom.query.R

Description

Execute a SOQL

Usage

1
rforcecom.query(session, soqlQuery, queryAll=FALSE)

Arguments

session

Session data. It can be retrieve from rforcecom.login.

soqlQuery

A SOQL query. (ex: "SELECT Id, Name FROM Account")

queryAll

A boolean. Indicate if query should include deleted and archived records (available only on Task and Event records)

Value

Result dataset.

Author(s)

Takekatsu Hiramura <thira@plavox.info>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
 # Execute a SOQL
 soqlQuery <- "SELECT Id, Name, Industry, AnnualRevenue FROM Account"
 rforcecom.query(session, soqlQuery)
 
 # Include records where IsDeleted=true
 soqlQuery <- "SELECT Id, IsDeleted, Subject, Description FROM Task"
 rforcecom.query(session, soqlQuery, queryAll=TRUE)
 
## End(Not run)

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