Create, delete, and query all items pinned to a channel.
You must specify the ChannelId column in the WHERE clause to query the Pins table.
The driver will use the Slack API to process search criteria that refer to the ChannelId column. This column supports server-side processing for the = operator. The driver processes other filters client-side within the driver.
For example, the following query is processed server side:
SELECT * FROM Pins WHERE ChannelId = 'D71R6CSR1'
You can turn off the client-side execution of the query by setting SupportEnhancedSQL to false in which case any search criteria that refers to other columns will cause an error.
INSERTS are allowed when you specify the ChannelId, Id, and Type. For example:
INSERT INTO Pins (ChannelId, Id, Type) VALUES ('D71R6CSR1', 'F71R6DRR1', 'file')
Slack does not support the update of pins.
You can delete a pin by providing the ChannelId, Id, and Type.
DELETE FROM Pins WHERE ChannelId = 'D71R6CSR1' AND Id = '1505287261.000226' AND Type = 'message'
The Id of the pinned item.
The type of the pinned item.
The allowed values are message, file, file comment.
A unique datetime representing when the item was pinned.
Channel Id to get pinned items for.
Comma separated list of channel ids the item is pinned to.
The encoded user id of the user who pinned the item.