---
title: "MailThreadsByFolder (Pipedrive)"
description: "E-mail-tr\u00E5de efter mappe"
language: da
source_language: en
translation_state: pending
canonical: https://documentation.invantive.eu/da/datamodels/pipedrive/Pipedrive.Mail.MailThreadsByFolder
original: https://documentation.invantive.eu/en/datamodels/pipedrive/Pipedrive.Mail.MailThreadsByFolder
updated: 2026-12-04T04:49:09Z
license: https://documentation.invantive.eu/da/
---

# MailThreadsByFolder: Pipedrive Mail Threads by Folder

`read only` `REST`

- Katalog: `Pipedrive`
- Skema: `Mail`
- Primærnøgler: `id`
- Label: Mail Threads by Folder

Kan kun hente data.

## Resumé

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-kilde

- Endepunkt: `/mailbox/mailThreads`

## Parametre

| Navn | Datatype | Krævet | Standard | Dokumentation |
|---|---|:---:|---|---|
| `folder` | `varchar2` | [x] |  | The folder. |

## Tabelkolonner

Tabellens kolonner `MailThreadsByFolder` er vist nedenfor. Hver kolonne har en SQL-datatype. Der skal til enhver tid angives en ny ikke-null-værdi for hver krævet kolonne under indsætning og opdatering.

| Navn | Datatype | Etiket | Krævet | Mærker | Dokumentation |
|---|---|---|:---:|---|---|
| `account_id` | `varchar2` | Konto-id | [ ] | filters on the platform, writable, computed, `account_id` | The connection account ID. |
| `add_time` | `datetime` | Oprettelsestidspunkt | [ ] | filters on the platform, writable, computed, `add_time` | The time when the mail thread was inserted to database. |
| `all_messages_sent_flag` | `varchar2` | Markering for »Alle sendte beskeder« | [ ] | filters on the platform, writable, computed, `all_messages_sent_flag` | The all messages sent flag. |
| `archived_flag` | `int64` | Arkiveret flag | [ ] | filtre på platformen, skrivbar, `archived_flag` | Whether the mail thread is archived. |
| `deal_id` | `int64` | Aftale-ID | [ ] | filtre på platformen, skrivbar, `deal_id` | The ID of the deal. |
| `deal_status` | `varchar2` | Handlens status | [ ] | filters on the platform, writable, computed, `deal_status` | Status of the deal. |
| `deleted_flag` | `varchar2` | Flag for slettet | [ ] | filters on the platform, writable, computed, `deleted_flag` | The deleted flag. |
| `drafts_parties` | `varchar2` | Kontraktparter | [ ] | filters on the platform, writable, computed, `drafts_parties` | Parties of the drafted mail thread. |
| `external_deleted_flag` | `varchar2` | Flag for ekstern sletning | [ ] | filters on the platform, writable, computed, `external_deleted_flag` | The external deleted flag. |
| `first_message_timestamp` | `datetime` | Tidspunkt for første besked | [ ] | 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` | Første besked til mig-flag | [ ] | filters on the platform, writable, computed, `first_message_to_me_flag` | The first message to me flag. |
| `folder` | `varchar2` | Mappe | [ ] | filters on the platform, writable, computed, `folder` | The folder the rows were read for. |
| `folders` | `varchar2` | Mapper | [ ] | filters on the platform, writable, computed, `folders` | Folders in which messages from thread are being stored. |
| `has_attachments_flag` | `varchar2` | Har flag for vedhæftede filer | [ ] | filters on the platform, writable, computed, `has_attachments_flag` | The has attachments flag. |
| `has_draft_flag` | `varchar2` | Har udkast-markering | [ ] | filters on the platform, writable, computed, `has_draft_flag` | The has draft flag. |
| `has_inline_attachments_flag` | `varchar2` | Har markeringen for vedhæftede filer i teksten | [ ] | filters on the platform, writable, computed, `has_inline_attachments_flag` | The has inline attachments flag. |
| `has_real_attachments_flag` | `varchar2` | Har flag for »Real Attachments« | [ ] | filters on the platform, writable, computed, `has_real_attachments_flag` | The has real attachments flag. |
| `has_sent_flag` | `varchar2` | Har sendt flag | [ ] | 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` | Tidspunkt for modtagelse af sidste besked | [ ] | 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` | Tidspunkt for afsendelse af sidste besked | [ ] | 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` | Tidspunkt for sidste besked | [ ] | filters on the platform, writable, computed, `last_message_timestamp` | Last message timestamp. |
| `lead_id` | `varchar2` | Lead-ID | [ ] | filtre på platformen, skrivbar, `lead_id` | The ID of the lead. |
| `mail_link_tracking_enabled_flag` | `varchar2` | Markering for aktiveret sporing af e-mail-links | [ ] | filters on the platform, writable, computed, `mail_link_tracking_enabled_flag` | The mail link tracking enabled flag. |
| `mail_tracking_status` | `varchar2` | Status for sporingen af forsendelsen | [ ] | filters on the platform, writable, computed, `mail_tracking_status` | Mail tracking status. |
| `message_count` | `int64` | Antal beskeder | [ ] | filters on the platform, writable, computed, `message_count` | An amount of messages. |
| `parties_from` | `varchar2` | Deltagere fra | [ ] | filters on the platform, writable, computed, `parties.from` | Senders of the mail thread. |
| `parties_to` | `varchar2` | Parter i | [ ] | filters on the platform, writable, computed, `parties.to` | Recipients of the mail thread. |
| `read_flag` | `varchar2` | Læs flag | [ ] | filtre på platformen, skrivbar, `read_flag` | The read flag. |
| `shared_flag` | `varchar2` | Fælles flag | [ ] | filtre på platformen, skrivbar, `shared_flag` | The shared flag. |
| `smart_bcc_flag` | `varchar2` | Smart BCC-markering | [ ] | filters on the platform, writable, computed, `smart_bcc_flag` | The smart bcc flag. |
| `snippet` | `varchar2` | Uddrag | [ ] | filters on the platform, writable, computed, `snippet` | A snippet. |
| `snippet_draft` | `varchar2` | Udkast til uddrag | [ ] | filters on the platform, writable, computed, `snippet_draft` | A snippet from a draft. |
| `snippet_sent` | `varchar2` | Udsnit sendt | [ ] | filters on the platform, writable, computed, `snippet_sent` | A snippet from a message sent. |
| `subject` | `varchar2` | Emne | [ ] | filters on the platform, writable, computed, `subject` | The subject. |
| `synced_flag` | `varchar2` | Synkroniseret flag | [ ] | filters on the platform, writable, computed, `synced_flag` | The synced flag. |
| `update_time` | `datetime` | Seneste opdateringstidspunkt | [ ] | filters on the platform, writable, computed, `update_time` | The time when the mail thread was updated in database received. |
| `user_id` | `int64` | Bruger-id | [ ] | filters on the platform, writable, computed, `user_id` | ID of the user whom mail message will be assigned to. |
| `version` | `decimal` | Version | [ ] | filters on the platform, writable, computed, `version` | Version. |
