public interface ForceAPI
| Modifier and Type | Method and Description |
|---|---|
AddTaskResponse |
addTask(AddTaskRequest addTask)
Creates task with given details in salesforce
|
DescribeSObjectResult |
describeSalesforceObject(String object)
Returns list of the salesforce object column names
|
String |
getSFEndpoint()
Insert a salesforce object
|
ForceResponse |
insertObject(String object,
String content)
Insert a salesforce object
|
SOQLResult |
query(String soql)
Execute the given SOQL by using "/query" API
|
SOQLResult |
query(String soql,
boolean all)
Execute the given SOQL by using either the "/query" API
or the "/queryAll" API
|
SOQLResult |
queryMore(SOQLResult oldResult)
Query further records using nextRecordsURL
|
SOQLResult query(String soql) throws Exception
soql - - SOQL to be executed.QueryResultExceptionSOQLResult query(String soql, boolean all) throws Exception
soql - - SOQL to be executed.all - - Toggle for /query or /queryAllQueryResultExceptionSOQLResult queryMore(SOQLResult oldResult) throws Exception
oldResult - ExceptionAddTaskResponse addTask(AddTaskRequest addTask) throws Exception
ExceptionForceResponse insertObject(String object, String content) throws Exception
object - - Name of the salesforce objectcontent - - Json content of the object to be savedExceptionString getSFEndpoint() throws Exception
object - - Name of the salesforce objectcontent - - Json content of the object to be savedExceptionDescribeSObjectResult describeSalesforceObject(String object) throws Exception
object - Name of the salesforce objectExceptionCopyright © 2019. All rights reserved.