Newer Version Available
Wave Class
Send a query string to Wave Analytics and get the results as JSON.
Namespace
Usage
The Wave class is part of the Wave Analytics Apex SDK. Use the executeQuery method to pass a SAQL query from an Apex page to Wave, and get a response in the form of JSON.
This example will send ‘your SAQL query’ to Wave:
Also refer to the classes in the wave namespace.
1String query = '[your SAQL query]';
2ConnectApi.LiteralJson result = ConnectApi.Wave.executeQuery(query);
3String response = result.json;Wave Methods
The following are methods for Wave. All methods are static.
executeQuery(query)
API Version
40.0
Requires Chatter
No
Signature
public ConnectApi.LiteralJson ConnectApi.Wave.executeQuery(String query)
Parameters
- query
- Type: String
- The SAQL query to send to Wave.
Return Value
Type: LiteralJson