Salesforce Queries

The following executes a query for sample Account object data in Salesforce using the WireBootstrap for Salesforce Connector. The query returns a datatable and displays it in a Bootstrap HTML table
const source = new wire.data.DataSource("salesforce");
const query = wire.data.select("Id", "Name", "AccountNumber", "AnnualRevenue", "NumberOfEmployees", "Rating") .from("Account").where().eq("Active__c", "Yes").orderBy("AnnualRevenue", true);
const table = await source.execAsync(query);
Account