---
title: "MailThreadsByFolder (Pipedrive)"
description: "S\u00E4hk\u00F6postiketjut kansioittain"
language: fi
source_language: en
translation_state: pending
canonical: https://documentation.invantive.eu/fi/datamodels/pipedrive/Pipedrive.Mail.MailThreadsByFolder
original: https://documentation.invantive.eu/en/datamodels/pipedrive/Pipedrive.Mail.MailThreadsByFolder
updated: 2026-12-04T05:10:29Z
license: https://documentation.invantive.eu/fi/
---

# MailThreadsByFolder: Pipedrive Mail Threads by Folder

`read only` `REST`

- Luettelo: `Pipedrive`
- Kaavio: `Mail`
- Ensisijaiset avaimet: `id`
- Label: Mail Threads by Folder

Voi hakea vain tietoja.

## Yhteenveto

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-lähde

- Päätepiste: `/mailbox/mailThreads`

## Parametrit

| Nimi | Tietotyyppi | Tarvitaan | Oletus | Dokumentaatio |
|---|---|:---:|---|---|
| `folder` | `varchar2` | [x] |  | The folder. |

## Taulukon sarakkeet

Taulukon `MailThreadsByFolder` sarakkeet on esitetty alla. Jokaisella sarakkeella on oma SQL-tietotyyppinsä. Jokaiselle pakolliselle sarakkeelle on annettava uusi, nollasta poikkeava arvo aina, kun suoritetaan lisäys- tai päivitystoiminto.

| Nimi | Tietotyyppi | Etiketti | Tarvitaan | Merkit | Dokumentaatio |
|---|---|---|:---:|---|---|
| `account_id` | `varchar2` | Tilin tunnus | [ ] | filters on the platform, writable, computed, `account_id` | The connection account ID. |
| `add_time` | `datetime` | Luomisaika | [ ] | filters on the platform, writable, computed, `add_time` | The time when the mail thread was inserted to database. |
| `all_messages_sent_flag` | `varchar2` | ”Kaikki lähetetyt viestit” -merkki | [ ] | filters on the platform, writable, computed, `all_messages_sent_flag` | The all messages sent flag. |
| `archived_flag` | `int64` | Arkistoitu lippu | [ ] | alustan suodattimet, kirjoitettavissa, `archived_flag` | Whether the mail thread is archived. |
| `deal_id` | `int64` | Kaupan tunnus | [ ] | alustan suodattimet, kirjoitettavissa, `deal_id` | The ID of the deal. |
| `deal_status` | `varchar2` | Kaupan tila | [ ] | filters on the platform, writable, computed, `deal_status` | Status of the deal. |
| `deleted_flag` | `varchar2` | Poistettu-merkki | [ ] | filters on the platform, writable, computed, `deleted_flag` | The deleted flag. |
| `drafts_parties` | `varchar2` | Sopimuspuolet | [ ] | filters on the platform, writable, computed, `drafts_parties` | Parties of the drafted mail thread. |
| `external_deleted_flag` | `varchar2` | Ulkoinen poistomerkki | [ ] | filters on the platform, writable, computed, `external_deleted_flag` | The external deleted flag. |
| `first_message_timestamp` | `datetime` | Ensimmäisen viestin aikaleima | [ ] | 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` | ”Ensimmäinen viesti minulle” -merkki | [ ] | filters on the platform, writable, computed, `first_message_to_me_flag` | The first message to me flag. |
| `folder` | `varchar2` | Kansio | [ ] | filters on the platform, writable, computed, `folder` | The folder the rows were read for. |
| `folders` | `varchar2` | Kansiot | [ ] | filters on the platform, writable, computed, `folders` | Folders in which messages from thread are being stored. |
| `has_attachments_flag` | `varchar2` | Onko liitteitä -merkki | [ ] | filters on the platform, writable, computed, `has_attachments_flag` | The has attachments flag. |
| `has_draft_flag` | `varchar2` | Sisältää luonnosmerkinnän | [ ] | filters on the platform, writable, computed, `has_draft_flag` | The has draft flag. |
| `has_inline_attachments_flag` | `varchar2` | Onko ”Inline-liitteet”-merkki valittuna? | [ ] | filters on the platform, writable, computed, `has_inline_attachments_flag` | The has inline attachments flag. |
| `has_real_attachments_flag` | `varchar2` | Onko ”Real Attachments” -merkki | [ ] | filters on the platform, writable, computed, `has_real_attachments_flag` | The has real attachments flag. |
| `has_sent_flag` | `varchar2` | Lähetetty-merkki | [ ] | 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` | Viimeisen vastaanotetun viestin aikaleima | [ ] | 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` | Viimeisen viestin lähetysajankohta | [ ] | 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` | Viimeisen viestin aikaleima | [ ] | filters on the platform, writable, computed, `last_message_timestamp` | Last message timestamp. |
| `lead_id` | `varchar2` | Johtotunnus | [ ] | alustan suodattimet, kirjoitettavissa, `lead_id` | The ID of the lead. |
| `mail_link_tracking_enabled_flag` | `varchar2` | Sähköpostilinkkien seurannan käyttöönotto -merkki | [ ] | filters on the platform, writable, computed, `mail_link_tracking_enabled_flag` | The mail link tracking enabled flag. |
| `mail_tracking_status` | `varchar2` | Postin seurantatiedot | [ ] | filters on the platform, writable, computed, `mail_tracking_status` | Mail tracking status. |
| `message_count` | `int64` | Viestien määrä | [ ] | filters on the platform, writable, computed, `message_count` | An amount of messages. |
| `parties_from` | `varchar2` | Osapuolet: | [ ] | filters on the platform, writable, computed, `parties.from` | Senders of the mail thread. |
| `parties_to` | `varchar2` | Sopimuspuolet | [ ] | filters on the platform, writable, computed, `parties.to` | Recipients of the mail thread. |
| `read_flag` | `varchar2` | Lue lippu | [ ] | alustan suodattimet, kirjoitettavissa, `read_flag` | The read flag. |
| `shared_flag` | `varchar2` | Yhteinen lippu | [ ] | alustan suodattimet, kirjoitettavissa, `shared_flag` | The shared flag. |
| `smart_bcc_flag` | `varchar2` | Älykäs BCC-merkki | [ ] | filters on the platform, writable, computed, `smart_bcc_flag` | The smart bcc flag. |
| `snippet` | `varchar2` | Ote | [ ] | filters on the platform, writable, computed, `snippet` | A snippet. |
| `snippet_draft` | `varchar2` | Luonnos katkelmasta | [ ] | filters on the platform, writable, computed, `snippet_draft` | A snippet from a draft. |
| `snippet_sent` | `varchar2` | Ote lähetetty | [ ] | filters on the platform, writable, computed, `snippet_sent` | A snippet from a message sent. |
| `subject` | `varchar2` | Aihe | [ ] | filters on the platform, writable, computed, `subject` | The subject. |
| `synced_flag` | `varchar2` | Synkronointilippu | [ ] | filters on the platform, writable, computed, `synced_flag` | The synced flag. |
| `update_time` | `datetime` | Viimeisin päivitysaika | [ ] | filters on the platform, writable, computed, `update_time` | The time when the mail thread was updated in database received. |
| `user_id` | `int64` | Käyttäjätunnus | [ ] | filters on the platform, writable, computed, `user_id` | ID of the user whom mail message will be assigned to. |
| `version` | `decimal` | Versio | [ ] | filters on the platform, writable, computed, `version` | Version. |
