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.
Table Class
Namespace
Usage
The metadata is stored in Salesforce. Updating the Apex code to return new or updated values for the table metadata doesn’t automatically update the stored metadata in Salesforce.
Table Properties
The following are properties for Table.
columns
Signature
public List<DataSource.Column> columns {get; set;}
Property Value
Type: List<DataSource.Column>
labelPlural
Signature
public String labelPlural {get; set;}
1DataSource.Table, labelPluralProperty Value
Type: String
labelSingular
Signature
public String labelSingular {get; set;}
Property Value
Type: String
nameColumn
Signature
public String nameColumn {get; set;}
Property Value
Type: String
Table Methods
The following are methods for Table.
get(name, labelSingular, labelPlural, description, nameColumn, columns)
Signature
public static DataSource.Table get(String name, String labelSingular, String labelPlural, String description, String nameColumn, List<DataSource.Column> columns)
Parameters
-
name:
Type: String
Name of the external table.
-
labelSingular:
Type: String
Singular form of the user-friendly name for the table. The labelSingular becomes the object label in the Salesforce user interface.
-
labelPlural:
Type: String
Plural form of the user-friendly name for the table. The labelPlural becomes the object’s plural label in the Salesforce user interface.
-
description:
Type: String
Description of the external table.
-
nameColumn:
Type: String
Name of the table column that becomes the name field of the external object when the administrator syncs the table.
-
columns:
Type: List<DataSource.Column>
List of table columns.
Return Value
Type: DataSource.Table
get(name, nameColumn, columns)
Signature
public static DataSource.Table get(String name, String nameColumn, List<DataSource.Column> columns)
1DataSource.Table, get, [String, String, List<DataSource.Column>], DataSource.TableParameters
-
name:
Type: String
Name of the external table.
-
nameColumn:
Type: String
Name of the table column that becomes the name field of the external object when the administrator syncs the table.
-
columns:
Type: List<DataSource.Column>
List of table columns.
Return Value
Type: DataSource.Table
| Property | Value |
|---|---|
| name | name |
| labelSingular | name |
| labelPlural | name |
| description | name |
| nameColumn | nameColumn |
| columns | columns |