Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
TableResult Class
Namespace
TableResult Properties
The following are properties for TableResult.
queryMoreToken
Signature
public String queryMoreToken {get; set;}
Property Value
Type: String
success
Signature
public Boolean success {get; set;}
Property Value
Type: Boolean
totalSize
Signature
public Integer totalSize {get; set;}
Property Value
Type: Integer
TableResult Methods
The following are methods for TableResult.
error(errorMessage)
Signature
public static DataSource.TableResult error(String errorMessage)
Parameters
-
errorMessage:
Type: String errorMessage
Return Value
Type: DataSource.TableResult
| Property | Value |
|---|---|
| success | false |
| errorMessage | errorMessage |
| tableName | null |
| rows | null |
| rows.size() | 0 |
get(success, errorMessage, tableName, rows, totalSize)
Signature
public static DataSource.TableResult get(Boolean success, String errorMessage, String tableName, List<Map<String,Object>> rows, Integer totalSize)
Parameters
-
success:
Type: Boolean
Whether the search or query was successful.
-
errorMessage:
Type: String errorMessage
-
tableName:
Type: String
Name of the table that was queried.
- rows:
-
totalSize:
Type: Integer
The total number of rows that meet the query criteria, even when the external system is requested to return a smaller batch size.
Return Value
Type: DataSource.TableResult
get(success, errorMessage, tableName, rows)
Signature
public static DataSource.TableResult get(Boolean success, String errorMessage, String tableName, List<Map<String,Object>> rows)
Parameters
Return Value
Type: DataSource.TableResult
get(queryContext, rows)
Signature
public static DataSource.TableResult get(DataSource.QueryContext queryContext, List<Map<String,Object>> rows)
Parameters
-
queryContext:
Type: DataSource.QueryContext
Represents
the query to run against a data table.
- rows:
Return Value
Type: DataSource.TableResult
get(tableSelection, rows)
Signature
public static DataSource.TableResult get(DataSource.TableSelection tableSelection, List<Map<String,Object>> rows)
Parameters
-
tableSelection:
Type: DataSource.TableSelection
Query details that represent
the FROM, ORDER BY, SELECT, and WHERE clauses in a SOQL or SOSL query.
- rows:
Return Value
Type: DataSource.TableResult