---
title: "MailThreadsByFolder (Pipedrive)"
description: "\u30D5\u30A9\u30EB\u30C0\u3054\u3068\u306E\u30E1\u30FC\u30EB\u30B9\u30EC\u30C3\u30C9"
language: ja
source_language: en
translation_state: pending
canonical: https://documentation.invantive.eu/ja/datamodels/pipedrive/Pipedrive.Mail.MailThreadsByFolder
original: https://documentation.invantive.eu/en/datamodels/pipedrive/Pipedrive.Mail.MailThreadsByFolder
updated: 2026-12-04T05:07:50Z
license: https://documentation.invantive.eu/ja/
---

# MailThreadsByFolder: Pipedrive Mail Threads by Folder

`read only` `REST`

- カタログ：`Pipedrive`
- スキーマ: `Mail`
- 主キー：`id`
- Label: Mail Threads by Folder

データの取得のみ可能です。

## 概要

The e-mail conversations in one folder of the mailbox: inbox, drafts, sent or archive. Each request costs 20 tokens of the daily budget of the company.

## APIソース

- エンドポイント: `/mailbox/mailThreads`

## パラメータ

| 名前 | データ型 | 必須 | デフォルト | ドキュメント |
|---|---|:---:|---|---|
| `folder` | `varchar2` | [x] |  | The folder. |

## 表の列

テーブル `MailThreadsByFolder` の列は以下のとおりです。 各列には、SQLのデータ型が設定されています。 INSERT文およびUPDATE文の実行中は、常にすべての必須列に対して、null以外の新しい値を指定する必要があります。

| 名前 | データ型 | ラベル | 必須 | マーク | ドキュメント |
|---|---|---|:---:|---|---|
| `account_id` | `varchar2` | アカウントID | [ ] | filters on the platform, writable, computed, `account_id` | The connection account ID. |
| `add_time` | `datetime` | 作成日時 | [ ] | filters on the platform, writable, computed, `add_time` | The time when the mail thread was inserted to database. |
| `all_messages_sent_flag` | `varchar2` | 「送信済み」フラグ | [ ] | filters on the platform, writable, computed, `all_messages_sent_flag` | The all messages sent flag. |
| `archived_flag` | `int64` | アーカイブされたフラグ | [ ] | プラットフォーム上のフィルター、書き込み可能、`archived_flag` | Whether the mail thread is archived. |
| `deal_id` | `int64` | 取引ID | [ ] | プラットフォーム上のフィルター、書き込み可能、`deal_id` | The ID of the deal. |
| `deal_status` | `varchar2` | 取引状況 | [ ] | filters on the platform, writable, computed, `deal_status` | Status of the deal. |
| `deleted_flag` | `varchar2` | 削除済みフラグ | [ ] | filters on the platform, writable, computed, `deleted_flag` | The deleted flag. |
| `drafts_parties` | `varchar2` | ドラフト参加団体 | [ ] | filters on the platform, writable, computed, `drafts_parties` | Parties of the drafted mail thread. |
| `external_deleted_flag` | `varchar2` | 外部削除フラグ | [ ] | filters on the platform, writable, computed, `external_deleted_flag` | The external deleted flag. |
| `first_message_timestamp` | `datetime` | 最初のメッセージのタイムスタンプ | [ ] | filters on the platform, writable, computed, `first_message_timestamp` | The time when the mail thread has had the first message received or created. |
| `first_message_to_me_flag` | `varchar2` | 「私への最初のメッセージ」フラグ | [ ] | filters on the platform, writable, computed, `first_message_to_me_flag` | The first message to me flag. |
| `folder` | `varchar2` | フォルダ | [ ] | filters on the platform, writable, computed, `folder` | The folder the rows were read for. |
| `folders` | `varchar2` | フォルダ | [ ] | filters on the platform, writable, computed, `folders` | Folders in which messages from thread are being stored. |
| `has_attachments_flag` | `varchar2` | 「添付ファイルあり」フラグが設定されている | [ ] | filters on the platform, writable, computed, `has_attachments_flag` | The has attachments flag. |
| `has_draft_flag` | `varchar2` | 「ドラフト」フラグが設定されている | [ ] | filters on the platform, writable, computed, `has_draft_flag` | The has draft flag. |
| `has_inline_attachments_flag` | `varchar2` | 「インライン添付ファイル」フラグがある | [ ] | filters on the platform, writable, computed, `has_inline_attachments_flag` | The has inline attachments flag. |
| `has_real_attachments_flag` | `varchar2` | 「実際の添付ファイルあり」フラグが設定されている | [ ] | filters on the platform, writable, computed, `has_real_attachments_flag` | The has real attachments flag. |
| `has_sent_flag` | `varchar2` | 「送信済み」フラグが設定されています | [ ] | filters on the platform, writable, computed, `has_sent_flag` | The has sent flag. |
| `id` | `int64` | ID | [x] | filters on the platform, writable, computed, `id` | ID of the mail thread. |
| `last_message_received_timestamp` | `datetime` | 最後に受信したメッセージのタイムスタンプ | [ ] | filters on the platform, writable, computed, `last_message_received_timestamp` | The last time when the mail thread has had a message received. |
| `last_message_sent_timestamp` | `datetime` | 最後のメッセージ送信日時 | [ ] | filters on the platform, writable, computed, `last_message_sent_timestamp` | The last time when the mail thread has had a message sent. |
| `last_message_timestamp` | `datetime` | 最後のメッセージのタイムスタンプ | [ ] | filters on the platform, writable, computed, `last_message_timestamp` | Last message timestamp. |
| `lead_id` | `varchar2` | リードID | [ ] | プラットフォーム上のフィルター、書き込み可能、`lead_id` | The ID of the lead. |
| `mail_link_tracking_enabled_flag` | `varchar2` | メールリンク追跡有効フラグ | [ ] | filters on the platform, writable, computed, `mail_link_tracking_enabled_flag` | The mail link tracking enabled flag. |
| `mail_tracking_status` | `varchar2` | メールの追跡状況 | [ ] | filters on the platform, writable, computed, `mail_tracking_status` | Mail tracking status. |
| `message_count` | `int64` | メッセージ数 | [ ] | filters on the platform, writable, computed, `message_count` | An amount of messages. |
| `parties_from` | `varchar2` | 参加団体 | [ ] | filters on the platform, writable, computed, `parties.from` | Senders of the mail thread. |
| `parties_to` | `varchar2` | 当事者 | [ ] | filters on the platform, writable, computed, `parties.to` | Recipients of the mail thread. |
| `read_flag` | `varchar2` | 「Read」フラグ | [ ] | プラットフォーム上のフィルター、書き込み可能、`read_flag` | The read flag. |
| `shared_flag` | `varchar2` | 共有フラグ | [ ] | プラットフォーム上のフィルター、書き込み可能、`shared_flag` | The shared flag. |
| `smart_bcc_flag` | `varchar2` | スマートBCCフラグ | [ ] | filters on the platform, writable, computed, `smart_bcc_flag` | The smart bcc flag. |
| `snippet` | `varchar2` | スニペット | [ ] | filters on the platform, writable, computed, `snippet` | A snippet. |
| `snippet_draft` | `varchar2` | スニペットの草案 | [ ] | filters on the platform, writable, computed, `snippet_draft` | A snippet from a draft. |
| `snippet_sent` | `varchar2` | スニペットを送信しました | [ ] | filters on the platform, writable, computed, `snippet_sent` | A snippet from a message sent. |
| `subject` | `varchar2` | 件名 | [ ] | filters on the platform, writable, computed, `subject` | The subject. |
| `synced_flag` | `varchar2` | 同期フラグ | [ ] | filters on the platform, writable, computed, `synced_flag` | The synced flag. |
| `update_time` | `datetime` | 最終更新日時 | [ ] | filters on the platform, writable, computed, `update_time` | The time when the mail thread was updated in database received. |
| `user_id` | `int64` | ユーザーID | [ ] | filters on the platform, writable, computed, `user_id` | ID of the user whom mail message will be assigned to. |
| `version` | `decimal` | バージョン | [ ] | filters on the platform, writable, computed, `version` | Version. |
