Newer Version Available

This content describes an older version of this product. View Latest

Wave Class

Send a query string to Wave Analytics and get the results as JSON.

Namespace

ConnectApi

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:
1String query = '[your SAQL query]';
2ConnectApi.LiteralJson result = ConnectApi.Wave.executeQuery(query);
3String response = result.json;
Also refer to the classes in the wave namespace.

Wave Methods

The following are methods for Wave. All methods are static.

executeQuery(query)

Send a SAQL query string to Wave Analytics, and get a response in the form of JSON.

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