CRM Analytics Apex QueryBuilder Examples

Build simple or complex SAQL queries using QueryBuilder.

QueryBuilder is the core of the CRM Analytics Apex feature set, so let’s take a closer look.

  1. Here’s a simple count query:

Output:

  1. Query selecting specific attributes and using aliases.

Output:

  1. Query using a filter condition.

Output:

  1. Query with a limit statement.

Output:

  1. Query with an order statement.

Output:

  1. Query with a union statement.

Output:

  1. Executing the query to get the result set via Query Builder.
  1. Example of grouping by a specific dataset attribute.

Output: