Bandeau de titre - Opéra-Conseil

SAQL Tip: Create an Instant List Counter

When dealing with large lists in Salesforce CRM, it's essential to quickly determine the total number of records without having to scroll through thousands of rows. By default, Salesforce displays lists in batches of 200 rows, making it challenging to ascertain the total count. However, with SAQL, Salesforce Analytics Query Language, you can resolve this issue in an instant.

Astuce SAQL : Créer un Compteur de Liste Instantané - Bonnes pratiques Saleforce - Opéra-Conseil

Use SAQL to create a query that counts the total number of records in your Salesforce dataset. The query will look like this:

Astuce SAQL : Créer un Compteur de Liste Instantané - Bonnes pratiques Salesforce - Opéra-Conseil

Make sure to replace « DATA_TEST » with the name of your dataset and « TEST_1 »,  « TEST_2 », « TEST_3 » with the names of your fields.

Create a text widget in your Salesforce CRM dashboard. Use the SAQL query in the widget to fetch the total number of records.

  1. Click on the widget, then on « Add Query Data ».
  2. Select your query, then choose your dynamic text.
Astuce SAQL : Créer un Compteur de Liste Instantané - Bonnes pratiques Salesforce - Opéra-Conseil
Astuce SAQL : Créer un Compteur de Liste Instantané - Bonnes pratiques Salesforce - Opéra-Conseil

This counter will instantly provide you with the total number of records in your list, helping you make informed decisions without having to scroll through thousands of rows.

To learn more about optimizing Salesforce CRM and other useful tips, check out our Salesforce Best Practices.


Discover more articles on our Salesforce best practices.

No Posts Found