rforcecom.login: Sign in to the Force.com (Salesforce.com)

Description Usage Arguments Value See Also Examples

View source: R/rforcecom.login.R

Description

This function retrives a session ID from Salesforce.com.

Usage

1
rforcecom.login(username, password, loginURL, apiVersion)

Arguments

username

Your username for login to the Salesforce.com. In many cases, username is your E-mail address.

password

Your password for login to the Salesforce.com. Note: DO NOT FORGET your Security Token. (Ex.) If your password is "Pass1234" and your security token is "XYZXYZXYZXYZ", you should set "Pass1234XYZXYZXYZXYZ".

loginURL

(optional) Login URL. If your environment is sandbox specify (ex:) "https://test.salesforce.com/".

apiVersion

(optional) Version of the REST API and SOAP API that you want to use. (ex:) "35.0" Supported versions from v20.0 and up.

Value

sessionID

Session ID.

instanceURL

Instance URL.

apiVersion

API Version.

See Also

rforcecom.query rforcecom.search rforcecom.create rforcecom.delete rforcecom.retrieve rforcecom.update rforcecom.upsert rforcecom.getServerTimestamp rforcecom.getObjectDescription rforcecom.getObjectList rforcecom.queryMore

Examples

1
2
3
4
5
6
7
## Not run: 
# Sign in to the Force.com
username <- "yourname@yourcompany.com"
password <- "YourPasswordSECURITY_TOKEN"
session <- rforcecom.login(username, password)

## End(Not run)

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