dealdesk.log_email
Log inbound or outbound emails on a desk card as email_incoming/email_outgoing status-update touchpoints, saving direction, from/to, subject, and body.
Instructions
Log an inbound or outbound email on a desk card as a status-update touchpoint (email_incoming / email_outgoing). Persists structured from/to (plus subject/text). Do not use add_card_note for email logs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Recipient email or label (persisted as statusUpdate.to) | |
| body | No | Alias for text | |
| from | No | Sender email or label (persisted as statusUpdate.from) | |
| text | No | Email body (maps to touchpoint note) | |
| cardId | Yes | Desk card id | |
| subject | No | Email subject | |
| direction | No | incoming → email_incoming; outgoing → email_outgoing (default incoming) | |
| projectId | No | DealDesk project id. Omit when the OAuth token or API key authorizes exactly one project. Required when Connect authorized several projects. | |
| contactIds | No | ||
| occurredAt | No | ISO datetime (defaults to now) |