Skip to main content

apps.datastore.count method

Welcome to the new home of Slack developer docs!

We're still building and not all features are available quite yet. Enjoy this peek into the future!

Not ready for the future? Return to the past at api.slack.com.

Usage info

This method is only available for workflow apps.

Refer to Datastores for more information.

This method is used to count the number of items in a datastore that match a query. The query uses a DynamoDB style of syntax. The following example would retrieve the number of records from the "good_tunes" datastore where "You" is in the song title.

	{
"datastore": "good_tunes",
"expression": "contains (#song, :keyword)",
"expression_attributes": { "#song": "song" },
"expression_values": { ":keyword": "You" }
}

See Datastores for a more in-depth exploration.

Response