CData Sync App は、Slack データをデータベース、データレイク、またはデータウェアハウスに継続的にパイプライン化する簡単な方法を提供し、分析、レポート、AI、および機械学習で簡単に利用できるようにします。
Slack コネクタはCData Sync アプリケーションから使用可能で、Slack からデータを取得して、サポートされている任意の同期先に移動できます。
Sync App はSlack API を利用してSlack への双方向アクセスを実現します。
必須プロパティについては、設定タブを参照してください。
通常必須ではない接続プロパティについては、高度な設定タブを参照してください。
Sync App は、次の認証メカニズムをサポートしています。
AuthScheme をOAuth に設定します。
以下のサブセクションでは、利用可能なOAuth フローを介したSlack への認証について詳しく説明します。
サポートされているOAuth 認証方法は2種類あります。設定プロセスは(カスタムアプリに設定されるスコープを除けば)すべてのOAuth メソッドで同じなので、認証に使用するアプリのタイプに合わせてSync App を設定してください。
接続の前に、以下の変数を設定します。
Slack への接続 をクリックして、デフォルトブラウザでOAuth エンドポイントを開きます。ログインして、アプリケーションにアクセス許可を与えます。
ドライバーは、以下のようにOAuth プロセスを完了します。
カスタムOAuth アプリケーションの作成 とスコープの選択後、標準的なOAuth 認証情報(クライアント、クライアントシークレット、コールバックURL)を設定するかわりに、User OAuth Token を使用して認証することができます。
トークンを使用するには、AuthScheme をUserToken に設定し、UserToken をアプリ設定のFeatures > OAuth & Permissions にある「User OAuth Token」の値に設定します。
これらの権限はアクセススコープによって定義され、アプリケーションがアクセス可能なデータと実行可能なアクションを決定します。
このトピックでは、Slack プロバイダーに必要なアクセススコープとエンドポイントドメインについての情報を提供します。
スコープは、ユーザーのデータへのアプリケーションによるアクセスを制限するための手段です。これは、アプリケーションがユーザーに代わって実行できる特定のアクションを定義します。
例えば、読み取り専用スコープではアプリケーションにデータの閲覧を許可し、フルアクセススコープではデータの変更を許可することができます。
| Scope | Description |
| channels:read | View basic information about public channels in a workspace. Required for read and write access. |
| groups:read | View messages and other content in private channels that your Slack app has been added to. Required for read and write access. |
| im:read | View basic information about direct messages that your Slack app has been added to. Required for read and write access. |
| mpim:read | View basic information about group direct messages that your Slack app has been added to. Required for read and write access. |
| channels:history | View messages and other content in public channels that your Slack app has been added to. Required for read and write access. |
| groups:history | View messages and other content in private channels that your Slack app has been added to. Required for read and write access. |
| im:history | View messages and other content in direct messages that your Slack app has been added to. Required for read and write access. |
| mpim:history | View messages and other content in group direct messages that your Slack app has been added to. Required for read and write access. |
| search:read | Search a workspace’s content. Required for read and write access. |
| files:read | View files shared in channels and conversations that your Slack app has been added to. Required for read and write access. |
| pins:read | View pinned content in channels and conversations that your Slack app has been added to. Required for read and write access. |
| usergroups:read | View user groups in a workspace. Required for read and write access. |
| reminders:read | View reminders created by your Slack app. Required for read and write access. |
| users:read | View people in a workspace. Required for read and write access. |
| channels:write | Manage a user’s public channels and create new ones on a user’s behalf. Required for write access. |
| groups:write | Manage private channels that your Slack app has been added to and create new ones. Required for write access. |
| im:write | Start direct messages with people. Required for write access. |
| mpim:write | Start group direct messages with people. Required for write access. |
| chat:write:user | Send messages on a user’s behalf. Required for write access. |
| chat:write:bot | Send messages as your Slack app. Required for write access. |
| files:write:user | Upload, edit, and delete files as your Slack app. Required for write access. |
| pins:write | Add and remove pinned messages and files. Required for write access. |
| usergroups:write | Create and manage user groups. Required for write access. |
| reminders:write | Add, remove, or mark reminders as complete. Required for write access. |
| users.profile:write | Edit a user’s profile information and status. Required for write access. |
エンドポイントドメインとは、アプリケーションが認証、レコードの取得、その他の重要な操作を実行するために通信する必要がある特定のURL を指します。
これらのドメインを許可することで、アプリケーションとAPI 間のネットワークトラフィックがファイアウォールやセキュリティ設定によってブロックされることがなくなります。
Note: ほとんどのユーザーは特別な設定をする必要はありません。許可リストは通常、送信ネットワークトラフィックの制限など、厳格なセキュリティ対策が施された環境でのみ必要となります。
| Domain | Always Required | Description |
| slack.com | TRUE | The URL of the Slack API. |
このセクションでは、Slack Sync App の高度な機能を厳選して説明します。
Sync App はユーザー定義ビューの使用をサポートします。これは事前設定されたユーザー定義クエリによって内容が決定される仮想テーブルです。 このビューは、ドライバーに発行されるクエリを直接制御できない場合に有効です。 カスタムビューの作成と設定の概要については、ユーザー定義ビュー を参照してください。
SSL の設定 を使用して、Sync App が証明書のネゴシエーションをどのように扱うかを調整します。さまざまな証明書形式を選択できます。詳しくは、「接続文字列オプション」にあるSSLServerCert プロパティを参照してください。
Windows プロキシとHTTP プロキシを含むファイアウォールとプロキシ に合致するようSync App を設定します。トンネル接続を設定することもできます。
詳しくは、クエリ処理 を参照してください。
デフォルトでは、Sync App はサーバーとのTLS のネゴシエーションを試みます。サーバー証明書は、デフォルトのシステム信頼済み証明書ストアで検証されます。SSLServerCert 接続プロパティを使用して、証明書の検証方法をオーバーライドできます。
別の証明書を指定するには、SSLServerCert 接続プロパティを参照してください。
HTTP プロキシへの認証には、以下のように設定します。
次のプロパティを設定します。
Sync App は、Slack API をテーブル、ビュー、およびストアドプロシージャ としてモデル化します。
ストアドプロシージャはSlack のファンクションライクなインターフェースで、Slack API の他の側面を扱うことを可能にします。ストアドプロシージャを使用すると、Slack 内の情報を検索、更新、および編集できます。
テーブル、ビュー、ストアドプロシージャは、静的なスキーマファイルで定義されているため、カスタマイズが容易です。
Sync App はSlack のデータを、標準のSQL ステートメントを使用してクエリできるリレーショナルデータベースのテーブルのリストとしてモデル化します。
| Name | Description |
| Bookmarks | Retrieves the list of bookmarks for the channel. |
| Calls | Register,update,end or return information about a Call. |
| Channels | Create, update, and query the available channels in Slack. |
| ConversationMembers | Retrieve members of a conversation. |
| Files | Query and delete team files. |
| MessageReplies | Create, update, delete, and query threads of messages posted to a conversation. |
| Messages | Create, update, delete, and query the available messages in Slack. |
| Pins | Create, delete, and query all items pinned to a channel. |
| Reactions | Create, delete, and query reactions on items. |
| Reminders | Create, delete, and query all reminders by or for a given user. |
| ScheduledMessages | Query all scheduled messages. |
| UserGroups | Create, update, and query all User Groups for a Slack team. |
| UserProfile | Retrieve a user's profile information, including their custom status. This table supports only Select and Update operations. |
| Users | Update and query all users for a Slack team. |
Retrieves the list of bookmarks for the channel.
You must specify the ChannelId column in the WHERE clause to query the Bookmarks table. The Sync App will use the Slack API to process search criteria that refer to the ChannelId columns. These columns support server-side processing for the = operator. The Sync App processes other filters client-side within the Sync App.
For example, the following queries are processed server side by the Slack APIs:
SELECT * FROM Bookmarks WHERE ChannelId = 'C01KWCPJJ68'
ChannelId, Title and Type are required for inserting a bookmark. Title, Type, Emoji, EntityId, Link, AccessLevel and ParentId are the only columns that can be set on an insert.
INSERT INTO Bookmarks (ChannelId, Title, Type, Link) VALUES ('C01KWCPJJ68', 'Test Bookmark', 'link', 'https://app.slack.com/archives/C01KWCPJJ68/p1735804757564799')
INSERT INTO Bookmarks (ChannelId, Title, Type, Link, Emoji, AccessLevel) VALUES ('C01KWCPJJ68', 'Test Bookmark', 'link', 'https://app.slack.com/archives/C01KWCPJJ68/p1735804757564799', ':clap:', 'write')
The Bookmarks table allows updates for columns Title, Link and Emoji when Id and ChannelId are specified.
UPDATE Bookmarks SET Link='https://cdatasoftware.slack.com/archives/C01KWCPJJ68/p1733740400267539' WHERE ChannelId = 'C01KWCPJJ68' and Id = 'Bk0871NJJQD8' Update Bookmarks SET Title='Test Bookmark Update' WHERE ChannelId = 'C01KWCPJJ68' and Id = 'Bk0871NJJQD8'
Bookmarks can be deleted by providing the ChannelId and the Id of the Bookmark.
DELETE FROM Bookmarks WHERE ChannelId = 'D71R6CSR1' AND Id = 'Bk0871NJJQD8'
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
The Id of the bookmark |
| ChannelId | String | True |
The Id of the channel. |
| AppId | String | False |
The App Id. |
| DateCreated | Datetime | True |
The date when the bookmark was created. |
| DateUpdated | Datetime | True |
The date when the bookmark was updated. |
| Emoji | String | False |
The emoji tag added to the bookmark. |
| EntityId | String | False |
The Id of the entity being bookmarked. |
| IconUrl | String | True |
The URL of the icon. |
| LastUpdatedByTeamId | String | True |
The Id of the team who last updated the bookmark. |
| LastUpdatedByUserId | String | True |
The Id of the user who last updated the bookmark. |
| Link | String | False |
Link to bookmark. |
| Rank | String | False |
The rank. |
| ShortcutId | String | True |
The shortcut Id. |
| Title | String | False |
Title of the bookmark. |
| Type | String | False |
Type of the bookmark. Supported values are link. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用します。データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| AccessLevel | String |
The level that we are setting the file's permission to (read or write). |
| ParentId | String |
Id of the bookmark's parent. |
| QuipSectionId | String |
Quip section ID to unbookmark |
Register,update,end or return information about a Call.
You must specify the Id column in the WHERE clause to query the Calls table.
The Sync App will use the Slack API to process search criteria that refer to the Id column. This column supports server-side processing for the = operator. The Sync App processes other filters client-side within the Sync App.
For example, the following query is processed server side:
SELECT * FROM Calls WHERE Id = 'R04HH525YBS'
Inserts are allowed when you specify the ExternalUniqueId and JoinURL. For example:
INSERT INTO Calls (ExternalUniqueId, JoinURL) VALUES (uniqId, joinurl)
Updates are allowed when you specify the Id.
UPDATE Calls SET JoinURL = 'join', Title = 't' WHERE Id = 'R04HH525YBS'
Slack does not allow Calls to be deleted.
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
Id of the call. |
| DateStart | Datetime | True |
Start time of the call. |
| DesktopAppJoinURL | String | False |
The desktop app join url of the call. |
| ExternalDisplayId | String | False |
The external display of the call. |
| ExternalUniqueId | String | False |
The external unique Id of the call. |
| JoinURL | String | False |
The joining url of the call. |
| Title | String | False |
The title of the call. |
| Users | String | True |
The users involved in the call. |
Create, update, and query the available channels in Slack.
The Sync App will use the Slack API to process search criteria that refer to the Id, IsArchived, IsPublic, IsGroup, IsDirectMessage, IsMultipartyDirectMessage and User columns. These columns support server-side processing for the = operator. The Sync App processes other filters client-side within the Sync App.
For example, the following queries are processed server side by the Slack APIs:
SELECT * FROM Channels WHERE IsPublic = false AND IsGroup = false AND IsArchived = true SELECT * FROM Channels WHERE Id = 'D71R6CSR1' SELECT * FROM Channels WHERE User = 'U03AZBU3CMT'
The Name column is the minimum requirement for an insert. Name and IsPublic are the only columns that can be set on an insert.
INSERT INTO Channels (Name, IsPublic) VALUES ('initialname', true)
The Channels table allows updates for columns Name, Purpose, and Topic when Id is specified.
UPDATE Channels SET Topic = 'A Topic Text', Purpose = 'A Purpose Text', Name = 'updatedname' WHERE Id = 'D71R6CSR1'
Slack does not allow Channels to be deleted.
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
The Id of the channel. |
| Name | String | False |
The name of the channel. |
| Topic | String | False |
Information about the channel topic. |
| TopicCreator | String | True |
Creator of the channel topic. |
| Purpose | String | False |
Information about the channel purpose. |
| TotalMembers | Integer | True |
Number of members in the channel. |
| Created | Datetime | True |
Channel creation datetime. |
| Creator | String | True |
User ID of the member that created this channel. |
| LastRead | Datetime | True |
The datetime for the last message the calling user has read in this channel. |
| IsMember | Boolean | True |
Indicates the user or bot user or Slack app associated with the token making the API call is itself a member of the conversation. |
| IsArchived | Boolean | True |
Indicates a conversation is archived. Frozen in time |
| IsPublic | Boolean | False |
Indicates whether a conversation is a public channel. Everything said in a public channel can be read by anyone else belonging to a workspace. |
| IsGroup | Boolean | True |
Indicates whether the channel is a private channel between a group of members. |
| IsDirectMessage | Boolean | True |
Means the conversation is a direct message between two distinguished individuals or a user and a bot. |
| IsMultipartyDirectMessage | Boolean | True |
Represents an unnamed private conversation between multiple users. |
| IsGeneral | Boolean | True |
Means the channel is the workspace's 'general' discussion channel. |
| Unlinked | Integer | True |
Number of times a link to the channel has been removed. |
| NameNormalized | String | True |
Normalized name of the channel. |
| IsShared | Boolean | True |
Means the conversation is in some way shared between multiple workspaces. |
| IsExtShared | Boolean | True |
Represents this conversation as being part of a Shared Channel with a remote organization. |
| IsOrgShared | Boolean | True |
Explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization. |
| IsPendingExtShared | Boolean | True |
It means the conversation is ready to become an IsExtShared channel but isn't quite ready yet and needs some kind of approval or sign off. |
| PreviousNames | String | True |
A list of previous names this channel has had. |
| Locale | String | True |
Locale of the channel. |
| User | String | True |
Id of the user. |
| IsUserDeleted | Boolean | True | |
| Priority | String | True |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用します。データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| TeamId | String |
Retrieve members of a conversation.
You must specify the ChannelId column in the WHERE clause to query the ConversationMembers view.
The Sync App uses the Slack API to process search criteria that refer to the ChannelId column. This column supports server-side processing for the = operator. The Sync App processes other filters client-side within the Sync App.
For example, the following query is processed server-side:
SELECT * FROM ConversationMembers WHERE ChannelId = 'C01KWCPJJ68'
Members can be removed from the conversation by specifying the ChannelId and MemberId.
DELETE FROM ConversationMembers WHERE ChannelId = 'D71R6CSR1' AND MemberId = 'U03AZBU3CMT'
| Name | Type | ReadOnly | Description |
| MemberId | String | True |
ID of the member. |
| ChannelId | String | True |
ID of the conversation to retrieve members for. |
Query and delete team files.
The Sync App will use the Slack API to filter by search criteria that refer to the Id, Created, UserId, Types, SpecificChannel, or SearchTerm columns. All columns support server-side processing for the = operator, and the Created column also supports server-side processing for the >, >=, <, <= operators.
The Sync App processes other search criteria client-side within the Sync App.
For example, the following queries are processed server side:
SELECT * FROM Files WHERE Created > '2017-01-01' AND UserId = 'U2345NDS' AND SpecificChannel = 'D71R6CSR1'
You can also filter files by querying the files' contents: Set the SearchTerm pseudocolumn in the criteria. All files containing the queried word will be retrieved. For example:
SELECT * FROM Files WHERE SearchTerm = 'text'
Slack does not allow inserting new files.
Slack does not allow updating files.
Files can be deleted by providing the Id of the file.
DELETE FROM Files WHERE Id = 'F71R6DRR1'
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
The Id of the file. |
| Name | String | True |
The name of the file. It may nbe null for unnamed files |
| Title | String | True |
The title of the file. |
| Created | Datetime | True |
Creation date of the file. |
| UserId | String | True |
User ID of the member that created this file. |
| Username | String | True |
Username of the file creator. |
| InitialComment | String | True |
A comment from the file uploader, and will only be set when the uploader left a comment at the time of upload. |
| Size | Integer | True |
The filesize in bytes. Snippets are limited to a maximum file size of 1 megabyte |
| Filetype | String | True |
The type of the file. |
| Mimetype | String | True |
Mime type of the file. |
| PrettyType | String | True |
Human-readable version of the type. |
| CommentsCount | Integer | True |
Number of comments made on the file. |
| Mode | String | True |
A property that contains one of hosted, external, snippet or post. |
| PublicChannelIds | String | True |
A list of channel IDs in which the file is currently shared. |
| GroupIds | String | True |
A list of private groups IDs in which the file is currently shared. |
| DirectMessageIds | String | True |
A list of instant message IDs in which the file is currently shared. |
| Editable | Boolean | True |
Indicates that files are stored in editable mode. |
| Permalink | String | True |
URL that points to a single page for the file containing details, comments and a download link. |
| PermalinkPublic | String | True |
If the file is available to the public, this URL points to the public file itself. |
| EditLink | String | True |
Present for posts and snippets. The page where the file can be edited |
| UrlPrivate | String | True |
Points to a URL to the file contents. |
| UrlPrivateDownload | String | True |
For editable-mode files, this parameter includes headers to force a browser download. |
| Thumb480 | String | True |
Contains the URL of an 480x480 thumb. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用します。データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| SpecificChannel | String |
Filter files appearing in a specific channel, indicated by its ID. |
| SearchTerm | String |
Filter by this column to retrieve all files that contain the word in the criteria. |
| Types | String |
Filter files by type. Allowed values are all,spaces,snippets,images,gdocs,zips. Default value is all. 使用できる値は次のとおりです。all, spaces, snippets, images, gdocs, zips |
Create, update, delete, and query threads of messages posted to a conversation.
The Sync App uses the Slack API to filter the results by the following columns and operators while the rest of the filter is executed client-side within the Sync App.
The MessageReplies table requires ChannelId and ParentMessageId columns in the WHERE clause; otherwise, the driver will automatically add these columns.
For example, the following query is processed server side:
SELECT * FROM MessageReplies WHERE ChannelId = 'D71R6CSR1' AND ParentMessageId = '1234567890.123456'
Slack allows inserts only when ChannelId, Text, and ParentMessageId are specified.
INSERT INTO MessageReplies (ChannelId, Text, ParentMessageId) VALUES ('D71R6CSR1', 'This is a message', '1234567890.123456')
The MessageReplies table allows updates only for the Text field. Specify ChannelId and Id.
UPDATE MessageReplies SET Text = 'Updated message' WHERE ChannelId = 'D71R6CSR1' AND Id = '1234567890.123456'
MessageReplies can be deleted by providing the ChannelId and the Id of the message.
DELETE FROM MessageReplies WHERE ChannelId = 'D71R6CSR1' AND Id = '1234567890.123456
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
Unique identifier for the messages. |
| ChannelId [KEY] | String | False |
Conversation ID to fetch thread from. |
| UserId | String | True |
User Id of the user who posted the reply. |
| Text | String | False |
Reply message content. |
| ParentMessageId [KEY] | String | False |
Unique identifier of a thread's parent message. |
| ReplyCount | Integer | True |
The replies number for thread's parent message. |
| Subscribed | Boolean | True |
Indicates if the user is subscribed to this channel. |
| LastRead | Datetime | True |
The datetime for the last message the calling user has read in this channel. |
| UnreadCount | Integer | True |
The number of members that have not read the parent message. |
| CreatedTime | Datetime | True |
The created date time of the message reply. |
| ParentCreatedTime | Datetime | True |
The parent message created date time. |
Create, update, delete, and query the available messages in Slack.
The Sync App uses the Slack API to filter the results by the following columns and operators while the rest of the filter is executed client-side within the Sync App.
Note: The Messages table requires ChannelId or SearchTerm in the WHERE clause. In the case of a simple select, the Slack automatically adds the ChannelId where the current user is a member of the channel to the WHERE clause.
SELECT * FROM Messages WHERE ChannelId = 'D71R6CSR1' SELECT * FROM Messages WHERE SearchTerm = 'text' SELECT * FROM Messages WHERE CreatedTime >= '7-30-2023 00:00:00' AND CreatedTime <= '8-4-2023 00:00:00'
Slack allows inserts only when ChannelId and Text are specified.
INSERT INTO Messages (ChannelId, Text) VALUES ('D71R6CSR1', 'This is a message')
The Messages table allows updates only for the Text field. Specify ChannelId and Id.
UPDATE Messages SET Text = 'Updated message' WHERE ChannelId = 'D71R6CSR1' AND Id = '1234567890.123456'
Messages can be deleted by providing the ChannelId and the Id of the message.
DELETE FROM Messages WHERE ChannelId = 'D71R6CSR1' AND Id = '1234567890.123456'
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
The Id of the message. |
| ChannelId [KEY] | String | False |
The Id of the channel the message was posted to. |
| UserId | String | True |
The Id of the user that posted the message. |
| Text | String | False |
Text of the message. |
| Type | String | True |
Type of the message. |
| Item_type | String | True |
Item type of the message. |
| Subtype | String | True |
Subtype of the message. |
| Team | String | True |
Team of the message. |
| Pinned_to | String | False |
Pinned details of the message. |
| Pinned_info_Channel | String | True |
Id of the pinned channel of the message. |
| Pinned_info_pinned_by | String | True |
Id of the pinned by message. |
| Pinned_info_pinned_ts | String | True |
Id of the pinned message of the message. |
| AttachmentsAggregate | String | True |
Attachments made to the message. |
| Purpose | String | False |
Purpose of the message. |
| BotId | String | True |
BotId of the message. |
| BotLink | String | True |
BotLink of the message. |
| Username | String | True |
UserName of the message. |
| Reply_count | Integer | False |
Count of the replied channels to the message. |
| Reply_users_count | Integer | False |
Count of the replied users to the message. |
| Latest_reply | String | True |
Latest message reply of the message. |
| Last_read | String | True |
Last read message. |
| Reply_usersAggreagte | String | True |
Replied user details of the message. |
| Subscribed | Boolean | True |
Subscribed status of the message. |
| Topic | String | True |
Topic of the message. |
| Old_name | String | False |
Old Name of the message. |
| Name | String | False |
Name of the message. |
| SearchTerm | String | True |
Filter by this column to retrieve all messages that contain the word in the criteria. |
| UserEditedDate | String | True |
The date of the edited message. |
| UserEditedId | String | True |
The user id of the edited message. |
| CreatedTime | Datetime | True |
The created date time of the message. |
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 Sync App 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 Sync App processes other filters client-side within the Sync App.
For example, the following query is processed server side:
SELECT * FROM Pins WHERE ChannelId = 'D71R6CSR1'
INSERTS are allowed when you specify the ChannelId and Id. For example:
INSERT INTO Pins (ChannelId, Id) VALUES ('D71R6CSR1', 'F71R6DRR1')
Slack does not support UPDATE for pins.
You can delete a pin by providing the ChannelId and Id.
DELETE FROM Pins WHERE ChannelId = 'D71R6CSR1' AND Id = '1505287261.000226'
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | False |
The Id of the pinned item. |
| Type [KEY] | String | True |
The type of the pinned item. |
| Created | Datetime | True |
A unique datetime representing when the item was pinned. |
| ChannelId [KEY] | String | False |
Channel Id to get pinned items for. |
| PinnedToChannelIds | String | True |
Comma separated list of channel ids the item is pinned to. |
| CreatedBy | String | True |
The encoded user id of the user who pinned the item. |
Create, delete, and query reactions on items.
The Sync App processes the filters client-side within the Sync App.
SELECT * FROM Reactions
SELECT * FROM Reactions WHERE Users = 'U046AV8HU3G'
SELECT * FROM Reactions WHERE Team = 'T046W75LRTK'
SELECT * FROM Reactions WHERE Team = 'T046W75LRTK' AND Users = 'U046AV8HU3G'
Inserts are allowed when you specify the ChannelId, Id, and Name. For example:
INSERT INTO Reactions (ChannelId, Id, Name) VALUES ('C04HBS2PS56', '1672114112.994259', 'raised_hands')
Slack does not support UPDATE for reactions.
You can delete a reaction by providing the ChannelId, Id, and Name.
DELETE FROM Reactions WHERE Name = 'raised_hands' AND ChannelId = 'C04HBS2PS56' AND Id = '1672114112.994259'
| Name | Type | ReadOnly | Description |
| Id | String | False |
The Id of the reacted item. |
| ChannelId | String | False |
The ChanneldId where item is reacted |
| Type | String | True |
The type of the reacted item. |
| Name | String | False |
The name of the reaction |
| Count | String | True |
The count of reactions on that message |
| Users | String | True |
The encoded user id of the user who reacted to the message. |
| Team | String | True |
The name of the reaction |
Create, delete, and query all reminders by or for a given user.
The Sync App uses the Slack API to process search criteria that refer to the Id column while other filters are processed client-side within the Sync App. For example, the following query is processed server side:
SELECT * FROM Reminders WHERE Id = 'RT7U7LN6F'
Inserts are allowed when you specify the Text and Time for the reminder. You can also add UserId. For example:
INSERT INTO Reminders (Text, Time, UserId) VALUES ('Remind me for coffee', '2017-01-01 10:00', 'U723764DF')
To insert with recurring patterns like "every_tuesday" and intervals like "in 15 minutes" use Frequency column.
INSERT INTO Reminders (Text, Frequency, UserId) VALUES ('Remind me for coffee', 'every_tuesday', 'U723764DF')
Slack does not support UPDATE for reminders.
You can delete a reminder by providing the Id.
DELETE FROM Reminders WHERE Id = 'R71R6CSR1'
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
The Id of the reminder. |
| Creator | String | True |
The Id of the user who created the reminder. |
| UserId | String | False |
The Id of the user the reminder is set for. |
| Text | String | False |
The content of the reminder. |
| Recurring | Boolean | True |
Indicates if this reminder is to be repeated. |
| Time | Datetime | False |
The datetime of the reminder. Only non-recurring reminders will return value for this column. |
| CompleteTimestamp | Datetime | True |
The datetime when the reminder was completed. Only non-recurring reminders will return value for this column. |
| Frequency | String | False |
Recurring frequency of the reminder. Only recurring reminders will return value for this column. Examples for insert: in 15 minutes or every Thursday |
| RecurrenceWeekdays | String | True |
Recurring days for the reminder. Only recurring reminders will return value for this column. |
Query all scheduled messages.
The Sync App will use the Slack API to filter by search criteria that refer to the ChannelId, PostAt and TeamId columns. All columns support server-side processing for the = operator, and the PostAt column also supports server-side processing for the >, >=, <, <= operators.
The Sync App processes other search criteria client-side within the Sync App.
For example, the following queries are processed server side:
SELECT * FROM ScheduledMessages WHERE ChannelId = 'D064Q184VGA' SELECT * FROM ScheduledMessages WHERE TeamId = 'T01LC4ASB2M' SELECT * FROM ScheduledMessages WHERE PostAt >= '07-01-2024 00:00:00' and PostAt <= '07-31-2024 00:00:00'
Scheduled Messages can be deleted by providing the ChannelId and the Id of the scheduled message.
DELETE FROM ScheduledMessages WHERE ChannelId = 'D71R6CSR1' AND Id = 'Q07SJJT75CN'
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
The Id of the scheduled message. |
| ChannelId | String | True |
The Id of the Channel. |
| PostAt | Datetime | True |
The posted date |
| CreatedTime | Datetime | True |
The created date. |
| Text | String | True |
Text of the scheduled message. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用します。データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| TeamId | String |
Team id to list channels in, required if org token is used. |
| AsUser | String |
Id of the user. |
Create, update, and query all User Groups for a Slack team.
The Sync App uses the Slack API to process search criteria that refer to the IncludeDisabled column while other search criteria are processed client-side within the Sync App. For example, the following query is processed server side:
SELECT * FROM UserGroups WHERE IncludeDisabled = 'true'
Inserts are allowed only for paid workspaces and when you specify the Name of the user group. Other optional fields are Description, Handle, and PreferredChannelIds. For example:
INSERT INTO UserGroups (Name, PreferredChannelIds) VALUES ('newgroup', 'C5S8LAY0Y,C79J7PREU')
You can update a user group by providing the Id and you can update the UserIds, Name, Description, PreferredChannelIds, and Handle columns. Updates are only allowed for paid workspaces.
UPDATE UserGroups SET PreferredChannelIds = 'C5S8LAY0Y,C79J7PREU', Name = 'newname' WHERE Id = 'U4826PEF'
Slack does not support the deletion of user groups.
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
The Id of the User Group. |
| Name | String | False |
Indicates the friendly name of the group. |
| Description | String | False |
Explains the purpose of the group. |
| TeamId | String | True |
Identifier of the team this user group belongs to. |
| UserIds | String | False |
Contains a list of user id values that belong to the User Group. |
| UserCount | String | True |
Indicates the total number of users in a group. |
| Handle | String | False |
Indicates the value used to notify group members via a mention without a leading @ sign. |
| PreferredChannelIds | String | False |
Channels that members of this group will be invited to upon joining. |
| PreferredGroupsIds | String | True |
Groups (private channels) that members of this group will be invited to upon joining. |
| IsExternal | Boolean | True |
Represents this conversation as being externally shared. |
| DateCreated | Datetime | True |
Datetime of the creation of the user group. |
| DateUpdated | Datetime | True |
Datetime of the last update made for the user group. |
| DateDeleted | Datetime | True |
Datetime that the user group became disabled. |
| CreatedBy | String | True |
Id of the user who created the user group. |
| UpdatedBy | String | True |
Id of the user who last modified the user group. |
| DeletedBy | String | True |
Id of the user who disabled/archived the user group. |
| AutoType | String | True |
This parameter's value can be admins for a Workspace Admins group, owners for a Workspace Owners group or null for a custom group. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用します。データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| IncludeDisabled | Boolean |
A boolean set to include or exclude disabled User Groups in the retrieved data. |
Retrieve a user's profile information, including their custom status. This table supports only Select and Update operations.
The Sync App will use the Slack API to process search criteria that refer to the UserId column. This column support server-side processing for the =,IN operator. The Sync App processes other filters client-side within the Sync App.
For example, the following queries are processed server side by the Slack APIs:
SELECT * FROM UserProfile WHERE UserId='W1234567890';
SELECT * FROM UserProfile WHERE UserId in ('W1234567890','W1234567891','W1234567892');
Slack does not support inserting new users.
There are a number of requirements for updating the user profile:
You can update a user profile by providing the Id of the user. For example:
UPDATE UserProfile SET DisplayName = 'Steve', RealName='Steve Smith' , customfields='{"Xf0111111": {"value": "Engineer","alt": ""},"Xf0222222":{"value": "2022-04-11","alt": ""}}', StatusText='riding a train', StatusEmoji=':train:' WHERE userId = 'W1234567890';
Slack does not support deleting users.
| Name | Type | ReadOnly | Description |
| AvatarHash | String | True |
Avatar Hash |
| DisplayName | String | False |
The display name the user has chosen to identify themselves by in their workspace profile. |
| DisplayNormalisedName | String | True |
The DisplayName field, but with any non-Latin characters filtered out. |
| String | False |
The Email of the user. The users:read.email OAuth scope is required to access the email field. | |
| CustomFields | String | False |
All the custom profile fields for the user. |
| FirstName | String | False |
The user's first name |
| LastName | String | False |
The user's last name. |
| Phone | String | False |
The user's phone number, in any format. |
| ProfileImage1024 | String | True |
URL to square, web-viewable image of a user's profile of size 1024. |
| ProfileImage192 | String | True |
URL to square, web-viewable image of a user's profile of size 192. |
| ProfileImage24 | String | True |
URL to square, web-viewable image of a user's profile of size 24. |
| ProfileImage32 | String | True |
URL to square, web-viewable image of a user's profile of size 32. |
| ProfileImage48 | String | True |
URL to square, web-viewable image of a user's profile of size 48. |
| ProfileImage512 | String | True |
URL to square, web-viewable image of a user's profile of size 512. |
| ProfileImage72 | String | True |
URL to square, web-viewable image of a user's profile of size 72. |
| ProfileImageOriginal | String | True |
URL to square, web-viewable image of a user's profile of original size. |
| IsCustomImage | Boolean | True |
Whether the image of a user's profile is custom image or not. |
| Pronouns | String | False |
The pronouns the user prefers to be addressed by. |
| HuddleState | String | True |
Huddle state of the user. |
| HuddleStateCallId | String | True |
Call Id of the huddle state |
| HuddleStateExpirationTime | Datetime | True |
The timestamp of when the huddle state will expire. |
| RealName | String | False |
The user's first and last name. |
| RealNormalisedName | String | True |
The RealName field, but with any non-Latin characters filtered out. |
| Skype | String | True |
A shadow from a bygone era. It will always be an empty string and cannot be set otherwise. |
| StartDate | String | False |
The date the person joined the organization. |
| StatusEmoji | String | False |
The displayed emoji that is enabled for the Slack team, such as :train:. |
| StatusEmojiDisplayInfo | String | True |
The information about the status emoji display. |
| StatusExpireTime | Datetime | False |
The timestamp of when the status will expire. Providing 0 or omitting this field results in a custom status that will not expire. |
| StatusText | String | False |
The displayed text of up to 100 characters. |
| StatusTextCanonical | String | False |
The Status text of the user. |
| Title | String | False |
The user's title. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用します。データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| UserId | String |
User Id to retrieve profile info for. |
| IncludeLabels | String |
Include labels for each ID in custom profile fields. Using this parameter will heavily rate-limit your requests and is not recommended. Default value is False |
Update and query all users for a Slack team.
The Sync App uses the Slack API to process search criteria that refer to the Id column, while other filters are processed client-side within the Sync App. For example, the following query is processed server side:
SELECT * FROM Users WHERE Id = 'U5SU7GU6N'
Slack does not support inserting new users.
You can update a user's FirstName, LastName, ProfileDisplayName, and ProfileEmail by providing the Id of the user. Only a team admin of a paid team can update another user's profile.
UPDATE Users SET ProfileDisplayName = 'Dis Name', ProfileEmail = '[email protected]' WHERE Id = 'U5SU7GU6N'
Slack does not support deleting users.
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
The Id of the User. |
| FirstName | String | False |
Fist name of the user. |
| LastName | String | False |
Last name of the user. |
| FullName | String | True |
Full name of the user. |
| ProfileDisplayName | String | False |
Display name of the user. |
| ProfileEmail | String | False |
Email of the user. |
| ProfileImage | String | True |
URLs to square, web-viewable image of a user's profile. |
| Deleted | Boolean | True |
Indicates if the user is deactivated. |
| TeamId | String | True |
Id of the Slack team the user belongs to. |
| IsAdmin | Boolean | True |
Indicates whether the user administers this team. |
| Color | String | True |
A field used in some clients to display a colored username. |
| Timezone | String | True |
String for the geographic region. |
| TimezoneLabel | String | True |
String describing the name of that timezone. |
| TimezoneOffset | Integer | True |
A signed integer indicating the number of seconds to offset UTC time by. |
| IsOwner | Boolean | True |
Indicates whether this user is the owner of this team. |
| IsPrimaryOwner | Boolean | True |
Indicates whether this user is the primary owner of this team. |
| IsRestricted | Boolean | True |
Indicates whether this user is restricted from the team . |
| IsUltraRestricted | Boolean | True |
Indicates whether this user is forbidden from the team. |
| Updated | Datetime | True |
A datetime that shows when the user was last updated. |
| IsAppUser | Boolean | True |
A boolean value indicating if the user uses the Slack App. |
| Has2fa | Boolean | True |
A boolean value indicating if the user uses Two Factor Authentication. |
ビューは、データを示すという点でテーブルに似ていますが、ビューは読み取り専用です。
クエリは、ビューに対して通常のテーブルと同様に実行することができます。
| Name | Description |
| Dnd | Retrieves a user's current Do Not Disturb status. |
| Team | Gets information about the current team. |
| TeamAccessLogs | Gets the access logs for the current team. |
| TeamInfo | Retrieves the Do Not Disturb status for up to 50 users on a team. |
| TeamProfileFields | Retrieves a team profile's Fields |
| TeamProfileSections | Retrieves a team profile's Sections |
| UsersPresence | Query user's presence information. Defaults to the authed user. |
Retrieves a user's current Do Not Disturb status.
The Sync App processes filters client-side within the Sync App.
For example, the following query is processed server side:
SELECT * FROM Dnd
| Name | Type | Description |
| DndEnabled | Boolean | DND status of the user |
| NextDndEndTs | Datetime | Time when DND starts |
| NextDndStartTs | Datetime | Time when DND ends |
| SnoozeEnabled | Boolean | Snooze status of the User. Visible only if the user is current user. |
| SnoozeEndtime | Datetime | Time when snooze ends. Visible only if the user is current user. |
| SnoozeIsIndefinite | Boolean | Indicates snooze will not automatically end. Visible only if the user is current user. |
| SnoozeRemaining | Datetime | Time remaining till snooze ends. Visible only if the user is current user. |
Gets information about the current team.
The Sync App will use the Slack API to filter by search criteria that refer to the Id column. The column support server-side processing for the = operator.
The Sync App processes filters client-side within the Sync App.
For example, the following query is processed server side:
SELECT * FROM Team
SELECT * FROM Team WHERE Id = 'T01LC4ASB2M'
| Name | Type | Description |
| Domain | String | The domain of the Team. |
| EmailDomain | String | The email of the domain of the Team. |
| Id [KEY] | String | The Id of the Team. |
| Name | String | The name of the Team. |
| EnterpriseId | String | The Enterprise Id of the Team. |
| EnterpriseName | String | The Enterprise Name of the Team. |
| Icon | String | The Icon of the Team. |
| IsVerified | Boolean | Indicates whether the team is verified. |
| LobSalesHomeEnabled | Boolean | Indicates the Sales Home status. |
| Url | String | The Url of the team. |
| AvatarBaseUrl | String | The Avatar base url of the Team. |
Gets the access logs for the current team.
The Sync App uses the Slack API to filter the results by the following columns and operators while the rest of the filter is executed client-side within the Sync App.
The TeamAccessLogs table requires TeamId column in the WHERE clause; otherwise, the driver will automatically add the column.
SELECT * FROM TeamAccessLogs WHERE TeamId = 'T01LC4ASB3M'
| Name | Type | Description |
| TeamId [KEY] | String | Id of the team. |
| UserId | String | Id of the user. |
| Username | String | Username of the user. |
| DateFirst | Datetime | The first login date time. |
| DateLast | Datetime | The last login date time. |
| Count | Integer | The login count. |
| IP | String | IP address of the user. |
| UserAgent | String | The user agent with which user logged in. |
| Isp | String | The internet service provider. |
| Country | String | Country. |
| Region | String | Region. |
Retrieves the Do Not Disturb status for up to 50 users on a team.
The Sync App uses the Slack API to filter the results by the following columns and operators while the rest of the filter is executed client-side within the Sync App.
The TeamInfo table requires User column in the WHERE clause; otherwise, the driver will automatically add the column.
SELECT * FROM TeamInfo WHERE User = 'U01KZFNNTPC'
SELECT * FROM TeamInfo WHERE User IN ('U01KZFNNTPC','U04QTH44D9S')
| Name | Type | Description |
| User | String | The Id of the user. |
| DndEnabled | Boolean | Indicates whether DND is enabled. |
| NextDndStartTime | Datetime | Next DND Start time. |
| NextDndEndTime | Datetime | Next DND End time. |
Retrieves a team profile's Fields
The Sync App uses the Slack API to filter the results by the following columns and operators while the rest of the filter is executed client-side within the Sync App.
SELECT * FROM TeamProfileFields
SELECT * FROM TeamProfileFields WHERE IsHidden = false
| Name | Type | Description |
| Id [KEY] | String | The Id of the field. |
| Ordering | Integer | The placement of the field on the profile. |
| Label | String | The text that will appear under the field. |
| Hint | String | Any additional context the user may need to understand the field. |
| Type | String | The format the field supports. Can be date, link, long_text, options_list, tags, text, or user. |
| PossibleValues | String | The values that allowed to be chosen by the user. |
| OptionsIsScim | Boolean | If true, can be updated via SCIM APIs. |
| OptionsIsProtected | Boolean | |
| IsHidden | Boolean | Indicates whether the field is hidden or not. |
| SectionId | String | The id of the section the field is in. |
Retrieves a team profile's Sections
The Sync App processes filters client-side within the Sync App.
For example, the following query is processed server side:
SELECT * FROM TeamProfileSections
| Name | Type | Description |
| Id [KEY] | String | The Id of the section. |
| TeamId | String | The Id of the Team. |
| Order | Integer | The placement of the section on the profile. |
| Label | String | The text that will appear under the section. |
| SectionType | String | The type of content in the section. Users can only create custom section types. |
| IsHidden | Boolean | Indicates whether the section is hidden or not. |
Query user's presence information. Defaults to the authed user.
You must specify the UserId column in the WHERE clause to query the UsersPresence view. If not specified, the presence information will be fetched for the authed user.
The Sync App uses the Slack API to process search criteria that refer to the UserId column. This column supports server-side processing for the = operator. The Sync App processes other filters client-side within the Sync App.
For example, the following query is processed server-side:
SELECT * FROM UsersPresence WHERE UserId = 'U03AZBU3CMT'
SELECT * FROM UsersPresence WHERE UserId IN ('U03AZBU3CMT', 'U03AZBU3CZH')
| Name | Type | Description |
| UserId [KEY] | String | The Id of the User. |
| Presence | String | User's current presence (either active or away). |
| Online | Boolean | User's online status. |
| AutoAway | Boolean | User status is away automatically. |
| ManualAway | Boolean | User status is away manually. |
| ConnectionCount | Integer | The connection count. |
| LastActivity | Datetime | Last activity of the user. |
| プロパティ | 説明 |
| AuthScheme | The scheme used for authentication. Accepted entries are OAuth and UserToken. |
| OAuthVersion | The type of authentication to use when connecting to Slack. |
| UserToken | Set this to use the non-expiring user token created in Slack. |
| プロパティ | 説明 |
| OAuthClientId | カスタムOAuth アプリケーションの作成時に割り当てられたクライアントId を指定します。(コンシューマーキーとも呼ばれます。)このID は、カスタムアプリケーションをOAuth 認可サーバーに登録します。 |
| OAuthClientSecret | カスタムOAuth アプリケーションの作成時に割り当てられたクライアントシークレットを指定します。( コンシューマーシークレット とも呼ばれます。)このシークレットは、カスタムアプリケーションをOAuth 認可サーバーに登録します。 |
| プロパティ | 説明 |
| SSLServerCert | TLS/SSL を使用して接続する際に、サーバーが受け入れ可能な証明書を指定します。 |
| プロパティ | 説明 |
| FirewallType | provider がプロキシベースのファイアウォールを介してトラフィックをトンネリングするために使用するプロトコルを指定します。 |
| FirewallServer | ファイアウォールを通過し、ユーザーのクエリをネットワークリソースに中継するために使用されるプロキシのIP アドレス、DNS 名、またはホスト名を識別します。 |
| FirewallPort | プロキシベースのファイアウォールで使用するTCP ポートを指定します。 |
| FirewallUser | プロキシベースのファイアウォールに認証するアカウントのユーザーID を識別します。 |
| FirewallPassword | プロキシベースのファイアウォールで認証するユーザーアカウントのパスワードを指定します。 |
| プロパティ | 説明 |
| ProxyAutoDetect | provider が、手動で指定されたプロキシサーバーを使用するのではなく、既存のプロキシサーバー構成についてシステムプロキシ設定をチェックするかどうかを指定します。 |
| ProxyServer | HTTP トラフィックをルートするプロキシサーバーのホストネームもしくはIP アドレス。 |
| ProxyPort | クライアントとの間でHTTP トラフィックをルーティングするために予約された、指定されたプロキシサーバー(ProxyServer 接続プロパティで設定)のTCP ポート。 |
| ProxyAuthScheme | ProxyServer 接続プロパティで指定されたプロキシサーバーに対して認証する際にprovider が使用する認証方法を指定します。 |
| ProxyUser | ProxyServer 接続プロパティで指定されたプロキシサーバーに登録されているユーザーアカウントのユーザー名。 |
| ProxyPassword | ProxyUser 接続プロパティで指定されたユーザーに紐付けられたパスワード。 |
| ProxySSLType | ProxyServer 接続プロパティで指定されたプロキシサーバーに接続する際に使用するSSL タイプ。 |
| ProxyExceptions | ProxyServer 接続プロパティで設定されたプロキシサーバー経由での接続が免除される宛先ホスト名またはIP のセミコロン区切りのリスト。 |
| プロパティ | 説明 |
| LogModules | ログファイルに含めるコアモジュールを指定します。セミコロンで区切られたモジュール名のリストを使用します。デフォルトでは、すべてのモジュールがログに記録されます。 |
| プロパティ | 説明 |
| Location | テーブル、ビュー、およびストアドプロシージャを定義するスキーマファイルを格納するディレクトリの場所を指定します。サービスの要件に応じて、これは絶対パスまたは相対パスのいずれかで表されます。 |
| BrowsableSchemas | レポートされるスキーマを利用可能なすべてのスキーマのサブセットに制限するオプション設定。例えば、 BrowsableSchemas=SchemaA,SchemaB,SchemaC です。 |
| Tables | レポートされるテーブルを利用可能なすべてのテーブルのサブセットに制限するオプション設定。例えば、 Tables=TableA,TableB,TableC です。 |
| Views | レポートされたビューを使用可能なテーブルのサブセットに制限するオプション設定。例えば、 Views=ViewA,ViewB,ViewC です。 |
| プロパティ | 説明 |
| ChannelType | The types of Channel to be returned when connecting to Slack. |
| MaxRows | 集計やGROUP BY を使用しないクエリで返される最大行数を指定します。 |
| Other | 特定のユースケースに対して追加の隠しプロパティを指定します。これらは通常のprovider の機能では必要ありません。複数のプロパティを定義するには、セミコロンで区切られたリストを使用します。 |
| PseudoColumns | テーブルカラムとして公開する擬似カラムを指定します。'TableName=ColumnName;TableName=ColumnName' という形式を使用します。デフォルトは空の文字列で、このプロパティを無効にします。 |
| Team | The name of the Slack Team. If you omit the optional Team parameter, you will be allowed to choose which workspace they are authenticating against. |
| Timeout | provider がタイムアウトエラーを返すまでにサーバーからの応答を待機する最大時間を秒単位で指定します。デフォルトは60秒です。タイムアウトを無効にするには0を設定します。 |
| UserDefinedViews | カスタムビューを定義するJSON 構成ファイルへのファイルパスを指定します。provider は、このファイルで指定されたビューを自動的に検出して使用します。 |
このセクションでは、本プロバイダーの接続文字列で設定可能なAuthentication プロパティの全リストを提供します。
| プロパティ | 説明 |
| AuthScheme | The scheme used for authentication. Accepted entries are OAuth and UserToken. |
| OAuthVersion | The type of authentication to use when connecting to Slack. |
| UserToken | Set this to use the non-expiring user token created in Slack. |
The scheme used for authentication. Accepted entries are OAuth and UserToken.
Use the following options to select your authentication scheme:
The type of authentication to use when connecting to Slack.
Set this to use the non-expiring user token created in Slack.
Set this to use the non-expiring user token created in Slack.
このセクションでは、本プロバイダーの接続文字列で設定可能なOAuth プロパティの全リストを提供します。
| プロパティ | 説明 |
| OAuthClientId | カスタムOAuth アプリケーションの作成時に割り当てられたクライアントId を指定します。(コンシューマーキーとも呼ばれます。)このID は、カスタムアプリケーションをOAuth 認可サーバーに登録します。 |
| OAuthClientSecret | カスタムOAuth アプリケーションの作成時に割り当てられたクライアントシークレットを指定します。( コンシューマーシークレット とも呼ばれます。)このシークレットは、カスタムアプリケーションをOAuth 認可サーバーに登録します。 |
カスタムOAuth アプリケーションの作成時に割り当てられたクライアントId を指定します。(コンシューマーキーとも呼ばれます。)このID は、カスタムアプリケーションをOAuth 認可サーバーに登録します。
OAuthClientId は、ユーザーがOAuth 経由で認証を行う前に設定する必要があるいくつかの接続パラメータの1つです。詳細は接続の確立を参照してください。
カスタムOAuth アプリケーションの作成時に割り当てられたクライアントシークレットを指定します。( コンシューマーシークレット とも呼ばれます。)このシークレットは、カスタムアプリケーションをOAuth 認可サーバーに登録します。
OAuthClientSecret は、ユーザーがOAuth 経由で認証を行う前に設定する必要があるいくつかの接続パラメータの1つです。詳細は接続の確立を参照してください。
このセクションでは、本プロバイダーの接続文字列で設定可能なSSL プロパティの全リストを提供します。
| プロパティ | 説明 |
| SSLServerCert | TLS/SSL を使用して接続する際に、サーバーが受け入れ可能な証明書を指定します。 |
TLS/SSL を使用して接続する際に、サーバーが受け入れ可能な証明書を指定します。
TLS/SSL 接続を使用する場合は、このプロパティを使用して、サーバーが受け入れるTLS/SSL 証明書を指定できます。コンピュータによって信頼されていない他の証明書はすべて拒否されます。
このプロパティは、次のフォームを取ります:
| 説明 | 例 |
| フルPEM 証明書(例では省略されています) | -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE----- |
| 証明書を保有するローカルファイルへのパス。 | C:\cert.cer |
| 公開鍵(例では省略されています) | -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY----- |
| MD5 Thumbprint (hex 値はスペースおよびコロン区切り) | ecadbdda5a1529c58a1e9e09828d70e4 |
| SHA1 Thumbprint (hex 値はスペースおよびコロン区切り) | 34a929226ae0819f2ec14b4a3d904f801cbb150d |
これを指定しない場合は、マシンが信用するすべての証明書が受け入れられます。
すべての証明書の受け入れを示すには、'*'を使用します。セキュリティ上の理由から、これはお勧めできません。
このセクションでは、本プロバイダーの接続文字列で設定可能なFirewall プロパティの全リストを提供します。
| プロパティ | 説明 |
| FirewallType | provider がプロキシベースのファイアウォールを介してトラフィックをトンネリングするために使用するプロトコルを指定します。 |
| FirewallServer | ファイアウォールを通過し、ユーザーのクエリをネットワークリソースに中継するために使用されるプロキシのIP アドレス、DNS 名、またはホスト名を識別します。 |
| FirewallPort | プロキシベースのファイアウォールで使用するTCP ポートを指定します。 |
| FirewallUser | プロキシベースのファイアウォールに認証するアカウントのユーザーID を識別します。 |
| FirewallPassword | プロキシベースのファイアウォールで認証するユーザーアカウントのパスワードを指定します。 |
provider がプロキシベースのファイアウォールを介してトラフィックをトンネリングするために使用するプロトコルを指定します。
プロキシベースのファイアウォール(またはプロキシファイアウォール)は、ユーザーのリクエストとそれがアクセスするリソースの間に介在するネットワークセキュリティデバイスです。 プロキシは認証済みのユーザーのリクエストを受け取り、ファイアウォールを通過して適切なサーバーにリクエストを送信します。
プロキシは、リクエストを送信したユーザーに代わってデータバケットを評価し転送するため、ユーザーはサーバーに直接接続することなく、プロキシのみに接続します。
Note:デフォルトでは、Sync App はシステムプロキシに接続します。この動作を無効化し、次のプロキシタイプのいずれかに接続するには、ProxyAutoDetect をfalse に設定します。
次の表は、サポートされている各プロトコルのポート番号情報です。
| プロトコル | デフォルトポート | 説明 |
| TUNNEL | 80 | Sync App がSlack への接続を開くポート。トラフィックはこの場所のプロキシを経由して行き来します。 |
| SOCKS4 | 1080 | Sync App がSlack への接続を開くポート。SOCKS 4 は次にFirewallUser 値をプロキシに渡し、接続リクエストが許容されるかどうかを決定します。 |
| SOCKS5 | 1080 | Sync App がSlack にデータを送信するポート。SOCKS 5 プロキシに認証が必要な場合には、FirewallUser およびFirewallPassword をプロキシが認識する認証情報に設定します。 |
HTTP プロキシへの接続には、ProxyServer およびProxyPort ポートを使ってください。HTTP プロキシへの認証には、ProxyAuthScheme、ProxyUser、およびProxyPassword を使ってください。
ファイアウォールを通過し、ユーザーのクエリをネットワークリソースに中継するために使用されるプロキシのIP アドレス、DNS 名、またはホスト名を識別します。
プロキシベースのファイアウォール(またはプロキシファイアウォール)は、ユーザーのリクエストとそれがアクセスするリソースの間に介在するネットワークセキュリティデバイスです。 プロキシは認証済みのユーザーのリクエストを受け取り、ファイアウォールを通過して適切なサーバーにリクエストを送信します。
プロキシは、リクエストを送信したユーザーに代わってデータバケットを評価し転送するため、ユーザーはサーバーに直接接続することなく、プロキシのみに接続します。
プロキシベースのファイアウォールで使用するTCP ポートを指定します。
プロキシベースのファイアウォール(またはプロキシファイアウォール)は、ユーザーのリクエストとそれがアクセスするリソースの間に介在するネットワークセキュリティデバイスです。 プロキシは認証済みのユーザーのリクエストを受け取り、ファイアウォールを通過して適切なサーバーにリクエストを送信します。
プロキシは、リクエストを送信したユーザーに代わってデータバケットを評価し転送するため、ユーザーはサーバーに直接接続することなく、プロキシのみに接続します。
プロキシベースのファイアウォールに認証するアカウントのユーザーID を識別します。
プロキシベースのファイアウォール(またはプロキシファイアウォール)は、ユーザーのリクエストとそれがアクセスするリソースの間に介在するネットワークセキュリティデバイスです。 プロキシは認証済みのユーザーのリクエストを受け取り、ファイアウォールを通過して適切なサーバーにリクエストを送信します。
プロキシは、リクエストを送信したユーザーに代わってデータバケットを評価し転送するため、ユーザーはサーバーに直接接続することなく、プロキシのみに接続します。
プロキシベースのファイアウォールで認証するユーザーアカウントのパスワードを指定します。
プロキシベースのファイアウォール(またはプロキシファイアウォール)は、ユーザーのリクエストとそれがアクセスするリソースの間に介在するネットワークセキュリティデバイスです。 プロキシは認証済みのユーザーのリクエストを受け取り、ファイアウォールを通過して適切なサーバーにリクエストを送信します。
プロキシは、リクエストを送信したユーザーに代わってデータバケットを評価し転送するため、ユーザーはサーバーに直接接続することなく、プロキシのみに接続します。
このセクションでは、本プロバイダーの接続文字列で設定可能なProxy プロパティの全リストを提供します。
| プロパティ | 説明 |
| ProxyAutoDetect | provider が、手動で指定されたプロキシサーバーを使用するのではなく、既存のプロキシサーバー構成についてシステムプロキシ設定をチェックするかどうかを指定します。 |
| ProxyServer | HTTP トラフィックをルートするプロキシサーバーのホストネームもしくはIP アドレス。 |
| ProxyPort | クライアントとの間でHTTP トラフィックをルーティングするために予約された、指定されたプロキシサーバー(ProxyServer 接続プロパティで設定)のTCP ポート。 |
| ProxyAuthScheme | ProxyServer 接続プロパティで指定されたプロキシサーバーに対して認証する際にprovider が使用する認証方法を指定します。 |
| ProxyUser | ProxyServer 接続プロパティで指定されたプロキシサーバーに登録されているユーザーアカウントのユーザー名。 |
| ProxyPassword | ProxyUser 接続プロパティで指定されたユーザーに紐付けられたパスワード。 |
| ProxySSLType | ProxyServer 接続プロパティで指定されたプロキシサーバーに接続する際に使用するSSL タイプ。 |
| ProxyExceptions | ProxyServer 接続プロパティで設定されたプロキシサーバー経由での接続が免除される宛先ホスト名またはIP のセミコロン区切りのリスト。 |
provider が、手動で指定されたプロキシサーバーを使用するのではなく、既存のプロキシサーバー構成についてシステムプロキシ設定をチェックするかどうかを指定します。
この接続プロパティをTrue に設定すると、Sync App は既存のプロキシサーバー構成についてシステムプロキシ設定をチェックします(プロキシサーバーの詳細を手動で入力する必要はありません)。
この接続プロパティは他のプロキシ設定より優先されます。特定のプロキシサーバーに接続するためにSync App を手動で構成する場合は、False に設定します。
HTTP プロキシへの接続には、ProxyServer を参照してください。SOCKS やトンネリングなどの他のプロキシには、FirewallType を参照してください。
HTTP トラフィックをルートするプロキシサーバーのホストネームもしくはIP アドレス。
ProxyAutoDetect がFalse に設定されている場合、Sync App はこの接続プロパティで指定されたプロキシサーバーを通じてのみHTTP トラフィックをルーティングします。ProxyAutoDetect がTrue に設定されている場合(デフォルト)、Sync App は代わりにシステムプロキシ設定で指定されたプロキシサーバーを介してHTTP トラフィックをルーティングします。
クライアントとの間でHTTP トラフィックをルーティングするために予約された、指定されたプロキシサーバー(ProxyServer 接続プロパティで設定)のTCP ポート。
ProxyAutoDetect がFalse に設定されている場合、Sync App はこの接続プロパティで指定されたプロキシサーバーポートを通じてのみHTTP トラフィックをルーティングします。ProxyAutoDetect がTrue に設定されている場合(デフォルト)、Sync App は代わりにシステムプロキシ設定で指定されたプロキシサーバーポートを介してHTTP トラフィックをルーティングします。
その他のプロキシタイプについては、FirewallType を参照してください。
ProxyServer 接続プロパティで指定されたプロキシサーバーに対して認証する際にprovider が使用する認証方法を指定します。
認証タイプは次のいずれかです。
"NONE" 以外のすべての値については、ProxyUser およびProxyPassword 接続プロパティも設定する必要があります。
SOCKS 5 認証のような他の認証タイプを使用するには、FirewallType を参照してください。
ProxyServer 接続プロパティで指定されたプロキシサーバーに登録されているユーザーアカウントのユーザー名。
ProxyUser および ProxyPassword 接続プロパティは、ProxyServer で指定されたHTTP プロキシに対して接続よび認証するために使用されます。
ProxyAuthScheme で利用可能な認証タイプを1つ選択した後、このプロパティを以下のように設定します。
| ProxyAuthScheme の値 | ProxyUser に設定する値 |
| BASIC | プロキシサーバーに登録されているユーザーのユーザー名。 |
| DIGEST | プロキシサーバーに登録されているユーザーのユーザー名。 |
| NEGOTIATE | プロキシサーバーが属するドメインまたは信頼されたドメイン内の有効なユーザーであるWindows ユーザーのユーザー名。user@domain またはdomain\user の形式で指定。 |
| NTLM | プロキシサーバーが属するドメインまたは信頼されたドメイン内の有効なユーザーであるWindows ユーザーのユーザー名。user@domain またはdomain\user の形式で指定。 |
| NONE | ProxyPassword 接続プロパティは設定しないでください。 |
Sync App は、ProxyAutoDetect がFalse に設定されている場合にのみ、このユーザー名を使用します。ProxyAutoDetect がTrue に設定されている場合(デフォルト)、Sync App は代わりにシステムのプロキシ設定で指定されているユーザー名を使用します。
ProxyUser 接続プロパティで指定されたユーザーに紐付けられたパスワード。
ProxyUser および ProxyPassword 接続プロパティは、ProxyServer で指定されたHTTP プロキシに対して接続よび認証するために使用されます。
ProxyAuthScheme で利用可能な認証タイプを1つ選択した後、このプロパティを以下のように設定します。
| ProxyAuthScheme の値 | ProxyPassword に設定する値 |
| BASIC | ProxyUser で指定したプロキシサーバーユーザーに紐付けられたパスワード。 |
| DIGEST | ProxyUser で指定したプロキシサーバーユーザーに紐付けられたパスワード。 |
| NEGOTIATE | ProxyUser で指定したWindows ユーザーアカウントに紐付けられたパスワード。 |
| NTLM | ProxyUser で指定したWindows ユーザーアカウントに紐付けられたパスワード。 |
| NONE | ProxyPassword 接続プロパティは設定しないでください。 |
SOCKS 5 認証もしくは、トンネリングは、FirewallType を参照してください。
Sync App は、ProxyAutoDetect がFalse に設定されている場合にのみ、このパスワードを使用します。ProxyAutoDetect がTrue に設定されている場合(デフォルト)、Sync App は代わりにシステムのプロキシ設定で指定されているパスワードを使用します。
ProxyServer 接続プロパティで指定されたプロキシサーバーに接続する際に使用するSSL タイプ。
このプロパティは、ProxyServer で指定されたHTTP プロキシへの接続にSSL を使用するかどうかを決定します。この接続プロパティには、以下の値を設定できます。
| AUTO | デフォルト設定。ProxyServer がHTTPS URL に設定されている場合、Sync App は、TUNNEL オプションを使用します。ProxyServer がHTTP URL に設定されている場合、コンポーネントはNEVER オプションを使用します。 |
| ALWAYS | 接続は、常にSSL 有効となります。 |
| NEVER | 接続は、SSL 有効になりません。 |
| TUNNEL | 接続はトンネリングプロキシ経由で行われます。プロキシサーバーがリモートホストへの接続を開き、プロキシを経由して通信が行われます。 |
ProxyServer 接続プロパティで設定されたプロキシサーバー経由での接続が免除される宛先ホスト名またはIP のセミコロン区切りのリスト。
ProxyServer は、このプロパティで定義されたアドレスを除くすべてのアドレスに使用されます。セミコロンを使用してエントリを区切ります。
Sync App はデフォルトでシステムプロキシ設定を使用するため、それ以上の設定は必要ありません。この接続にプロキシ例外を明示的に設定する場合は、ProxyAutoDetect をFalse に設定します。
このセクションでは、本プロバイダーの接続文字列で設定可能なLogging プロパティの全リストを提供します。
| プロパティ | 説明 |
| LogModules | ログファイルに含めるコアモジュールを指定します。セミコロンで区切られたモジュール名のリストを使用します。デフォルトでは、すべてのモジュールがログに記録されます。 |
ログファイルに含めるコアモジュールを指定します。セミコロンで区切られたモジュール名のリストを使用します。デフォルトでは、すべてのモジュールがログに記録されます。
このプロパティは、含めるログモジュールを指定することでログファイルの内容をカスタマイズすることができます。 ログモジュールは、クエリ実行、メタデータ、SSL 通信などの異なる領域にログ情報を分類します。 各モジュールは4文字のコードで表され、文字の名前の場合は末尾にスペースが必要なものもあります。
例えば、EXEC はクエリ実行をログに記録し、INFO は一般的なプロバイダーメッセージをログに記録します。 複数のモジュールを含めるには、次のように名前をセミコロンで区切ります:INFO;EXEC;SSL。
Verbosity 接続プロパティは、このプロパティで指定されたモジュールベースのフィルタリングよりも優先されます。 Verbosity レベルを満たし、指定されたモジュールに属するログエントリのみが記録されます。 利用可能なすべてのモジュールをログファイルに含めるには、このプロパティを空白のままにします。
利用可能なモジュールの完全なリストとログの設定に関する詳細な手引きについては、ログ の「高度なログの記録」セクションを参照してください。
このセクションでは、本プロバイダーの接続文字列で設定可能なSchema プロパティの全リストを提供します。
| プロパティ | 説明 |
| Location | テーブル、ビュー、およびストアドプロシージャを定義するスキーマファイルを格納するディレクトリの場所を指定します。サービスの要件に応じて、これは絶対パスまたは相対パスのいずれかで表されます。 |
| BrowsableSchemas | レポートされるスキーマを利用可能なすべてのスキーマのサブセットに制限するオプション設定。例えば、 BrowsableSchemas=SchemaA,SchemaB,SchemaC です。 |
| Tables | レポートされるテーブルを利用可能なすべてのテーブルのサブセットに制限するオプション設定。例えば、 Tables=TableA,TableB,TableC です。 |
| Views | レポートされたビューを使用可能なテーブルのサブセットに制限するオプション設定。例えば、 Views=ViewA,ViewB,ViewC です。 |
テーブル、ビュー、およびストアドプロシージャを定義するスキーマファイルを格納するディレクトリの場所を指定します。サービスの要件に応じて、これは絶対パスまたは相対パスのいずれかで表されます。
Location プロパティは、定義をカスタマイズしたり(例えば、カラム名を変更する、カラムを無視するなど)、新しいテーブル、ビュー、またはストアドプロシージャでデータモデルを拡張する場合にのみ必要です。
指定しない場合、デフォルトの場所は%APPDATA%\\CData\\Slack Data Provider\\Schema となり、%APPDATA%はユーザーのコンフィギュレーションディレクトリに設定されます:
| プラットフォーム | %APPDATA% |
| Windows | APPDATA 環境変数の値 |
| Linux | ~/.config |
レポートされるスキーマを利用可能なすべてのスキーマのサブセットに制限するオプション設定。例えば、 BrowsableSchemas=SchemaA,SchemaB,SchemaC です。
利用可能なデータベーススキーマをすべてリストすると余分な時間がかかり、パフォーマンスが低下します。 接続文字列にスキーマのリストを指定することで、時間を節約しパフォーマンスを向上させることができます。
レポートされるテーブルを利用可能なすべてのテーブルのサブセットに制限するオプション設定。例えば、 Tables=TableA,TableB,TableC です。
データベースによっては、利用可能なすべてのテーブルをリストするのに時間がかかり、パフォーマンスが低下する場合があります。 接続文字列にテーブルのリストを指定することで、時間を節約しパフォーマンスを向上させることができます。
利用可能なテーブルがたくさんあり、すでに作業したいテーブルが決まっている場合、このプロパティを使用して対象のテーブルのみに表示を制限することができます。これを行うには、カンマ区切りのリストで使用したいテーブルを指定します。各テーブルは、角かっこ、二重引用符、またはバッククオートを使用してエスケープされた特殊文字列を含む有効なSQL 識別子である必要があります。 例えば、Tables=TableA,[TableB/WithSlash],WithCatalog.WithSchema.`TableC With Space` です。
Note:複数のスキーマまたはカタログを持つデータソースに接続する場合は、表示する各テーブルを完全修飾名で指定する必要があります。これにより、複数のカタログやスキーマに存在するテーブルが混同されることを防ぎます。
レポートされたビューを使用可能なテーブルのサブセットに制限するオプション設定。例えば、 Views=ViewA,ViewB,ViewC です。
データベースによっては、利用可能なすべてのビューをリストするのに時間がかかり、パフォーマンスが低下する場合があります。 接続文字列にビューのリストを指定することで、時間を節約しパフォーマンスを向上させることができます。
利用可能なビューがたくさんあり、すでに作業したいビューが決まっている場合、このプロパティを使用して対象のビューのみに表示を制限することができます。これを行うには、カンマ区切りのリストで使用したいビューを指定します。各ビューは、角かっこ、二重引用符、またはバッククオートを使用してエスケープされた特殊文字列を含む有効なSQL 識別子である必要があります。 例えば、Views=ViewA,[ViewB/WithSlash],WithCatalog.WithSchema.`ViewC With Space` です。
Note:複数のスキーマまたはカタログを持つデータソースに接続する場合は、確認する各ビューを完全修飾名で指定する必要があります。これにより、複数のカタログやスキーマに存在するビューが混同されることを防ぎます。
このセクションでは、本プロバイダーの接続文字列で設定可能なMiscellaneous プロパティの全リストを提供します。
| プロパティ | 説明 |
| ChannelType | The types of Channel to be returned when connecting to Slack. |
| MaxRows | 集計やGROUP BY を使用しないクエリで返される最大行数を指定します。 |
| Other | 特定のユースケースに対して追加の隠しプロパティを指定します。これらは通常のprovider の機能では必要ありません。複数のプロパティを定義するには、セミコロンで区切られたリストを使用します。 |
| PseudoColumns | テーブルカラムとして公開する擬似カラムを指定します。'TableName=ColumnName;TableName=ColumnName' という形式を使用します。デフォルトは空の文字列で、このプロパティを無効にします。 |
| Team | The name of the Slack Team. If you omit the optional Team parameter, you will be allowed to choose which workspace they are authenticating against. |
| Timeout | provider がタイムアウトエラーを返すまでにサーバーからの応答を待機する最大時間を秒単位で指定します。デフォルトは60秒です。タイムアウトを無効にするには0を設定します。 |
| UserDefinedViews | カスタムビューを定義するJSON 構成ファイルへのファイルパスを指定します。provider は、このファイルで指定されたビューを自動的に検出して使用します。 |
The types of Channel to be returned when connecting to Slack.
集計やGROUP BY を使用しないクエリで返される最大行数を指定します。
このプロパティは、集計やGROUP BY 句を含まないクエリに対してSync App が返す行数の上限を設定します。 この制限により、クエリがデフォルトで過度に大きな結果セットを返さないようにします。
クエリにLIMIT 句が含まれている場合、クエリで指定された値がMaxRows 設定よりも優先されます。 MaxRows が"-1" に設定されている場合、LIMIT 句が明示的にクエリに含まれていない限り、行の制限は行われません。
このプロパティは、非常に大きなデータセットを返す可能性のあるクエリを実行する際に、パフォーマンスを最適化し過剰なリソース消費を防ぐのに役立ちます。
特定のユースケースに対して追加の隠しプロパティを指定します。これらは通常のprovider の機能では必要ありません。複数のプロパティを定義するには、セミコロンで区切られたリストを使用します。
このプロパティは、シニアユーザーが特定のシナリオに対して隠しプロパティを設定できるようにします。 これらの設定は通常のユースケースには必要ありませんが、特定の要件に対応したり、追加の機能を提供したりすることができます。 複数のプロパティをセミコロン区切りのリストで定義できます。
Note: 特定のシナリオや問題に対処するためにサポートチームから助言があった場合にのみ、これらのプロパティを設定することを強く推奨します。
複数のプロパティをセミコロン区切りリストで指定します。
| DefaultColumnSize | データソースがメタデータにカラムの長さを提供しない場合に、文字列フィールドのデフォルトの長さを設定します。デフォルト値は2000です。 |
| ConvertDateTimeToGMT | 日時の値を、マシンのローカルタイムではなくGMT グリニッジ標準時に変換するかどうかを決定します。 |
| RecordToFile=filename | 基底のソケットデータ転送を指定のファイルに記録します。 |
テーブルカラムとして公開する擬似カラムを指定します。'TableName=ColumnName;TableName=ColumnName' という形式を使用します。デフォルトは空の文字列で、このプロパティを無効にします。
このプロパティを使用すると、Sync App がテーブルカラムとして公開する擬似カラムを定義できます。
個々の擬似カラムを指定するには、以下の形式を使用します。"Table1=Column1;Table1=Column2;Table2=Column3"
すべてのテーブルのすべての擬似カラムを含めるには、次のようにします:"*=*"
The name of the Slack Team. If you omit the optional Team parameter, you will be allowed to choose which workspace they are authenticating against.
The name of the Slack Team. If you omit the optional Team parameter, you will be allowed to choose which workspace they are authenticating against.
provider がタイムアウトエラーを返すまでにサーバーからの応答を待機する最大時間を秒単位で指定します。デフォルトは60秒です。タイムアウトを無効にするには0を設定します。
このプロパティは、Sync App が操作をキャンセルする前に操作の完了を待機する最大時間を秒単位で制御します。 操作の完了前にタイムアウト時間が経過すると、Sync App は操作をキャンセルして例外をスローします。
タイムアウトは、クエリや操作全体ではなくサーバーとの個々の通信に適用されます。 例えば、各ページング呼び出しがタイムアウト制限内に完了する場合、クエリは60秒を超えて実行を続けることができます。
このプロパティを0に設定するとタイムアウトが無効になり、操作が成功するか、サーバー側のタイムアウト、ネットワークの中断、またはサーバーのリソース制限などの他の条件で失敗するまで無期限に実行されます。 このプロパティは慎重に使用してください。長時間実行される操作がパフォーマンスを低下させたり、応答しなくなる可能性があるためです。
カスタムビューを定義するJSON 構成ファイルへのファイルパスを指定します。provider は、このファイルで指定されたビューを自動的に検出して使用します。
このプロパティを使用すると、UserDefinedViews.json というJSON 形式の構成ファイルを通じてカスタムビューを定義および管理できます。 これらのビューはSync App によって自動的に認識され、標準のデータベースビューのようにカスタムSQL クエリを実行できるようになります。 JSON ファイルは、各ビューをルート要素として定義し、その子要素として"query" を持ちます。この"query" にはビューのSQL クエリが含まれています。次に例を示します。
{
"MyView": {
"query": "SELECT * FROM Channels WHERE MyColumn = 'value'"
},
"MyView2": {
"query": "SELECT * FROM MyTable WHERE Id IN (1,2,3)"
}
}
このプロパティを使用して、1つのファイルに複数のビューを定義し、ファイルパスを指定できます。 例:UserDefinedViews=C:\Path\To\UserDefinedViews.json。 このプロパティを使用すると、指定されたビューのみがSync App によって検知されます。
詳しくは、ユーザー定義ビュー を参照してください。