Queries
Salesforce queries in WireBootstrap use the query
resource of the REST API to execute SOQL in Salesforce. For details on this resource, visit Execute a SOQL Query.
Creating Queries
To create a query against Salesforce in WireBootstrap, use the standard table query interface in WireBootstrap.
For example, to request a list of account records, use the Account
entity.
To filter the accounts returned, use the where
method with a filter expression method.
The where
method also takes an optional string parameter to create custom filters.
Execute Queries
After creating a query, execute the query in Salesforce using the execAsync
method on the data source.
Query results are returned in a WireBootstrap DataTable object.
Results
The datatable returned from the query contains the list of records requested from Salesforce. However, the response returned from Salesforce contains much more data than can be represented in a WireBootstrap datatable.
The service provider for the WireBootstrap for Salesforce Data Connector has an extension method called results
which will return the raw results from the last Salesforce query.
For more on service provider extensions methods, visit Provider Extensions.
Last updated