apps.datastore.query
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 query a datastore and uses a DynamoDB style of syntax. The following example would retrieve all 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.