export_crm_file
Export people (entity=contacts) or organisations (entity=accounts) as a real spreadsheet file and return { url, filename, format, count, columns, hidden_columns, truncated }. url is a signed link (7 days) to a private file. format: xlsx (default) | csv (semicolon-separated, UTF-8 with BOM so Excel opens umlauts correctly). Optional filters: ids (export exactly these rows, e.g. the current filtered list), label, filter or saved_filter_id (as in search_crm), search (name/e-mail/phone/city), owner_id, max_rows (default 5000, max 20000). Fields hidden from your role by field permissions are LEFT OUT of the file (listed in hidden_columns), and search only looks at visible fields. xlsx adds a second sheet 'Verlauf' (messages, calls, meetings, e-mails of the exported people; for organisations of their people and leads) unless include_history=false. Needs admin or the role permission contacts:export / accounts:export; every export is written to audit_log (action export) and the tool can be locked per person via permission sets.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity": "<entity>"
},
"name": "export_crm_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Export exactly these records (max 20000). | |
| label | No | Only records with this label (name or id). | |
| entity | Yes | contacts | accounts | |
| filter | No | Combinable filter like search_crm: { all: [...], any: [...] }. | |
| format | No | xlsx (default) | csv | |
| search | No | Free-text search term | |
| max_rows | No | Default 5000, max 20000 | |
| owner_id | No | ID of the owner (user) | |
| include_history | No | xlsx only: add the sheet Verlauf (default true). | |
| saved_filter_id | No | Use a saved filter (save_filter / list_saved_filters). |