I ran Jorge's solution through Claude Code to understand it better, and it came back with an interesting analysis:
Jorge's approach is genuinely creative — chaining 5 native TeamDesk features (periodic trigger → gateway login URL → exportview download → file attachment storage → email trigger) to solve a problem that's been open for 11 years. Respect for that.
However, there are two concerns:
1. Security: The user's password is stored in plain text in a Text column. Even if hidden from views and forms, it's still accessible via API, backups, and by any admin. If the password changes, the automation breaks silently.
2. Fragility: Five chained components mean five points of failure with no way to debug which step broke.
---
A simpler alternative using n8n (or similar automation tools)
The same result can be achieved with 4 linear steps, no password exposure, and full control over the Excel output:
Step 1 — Schedule Trigger
Set your frequency: weekly, monthly, first Monday of the month, etc.
Step 2 — HTTP Request to TeamDesk API
GET
https://www.teamdesk.net/secure/api/v2/{dbId}/{table}/select.json
Authorization: Bearer {your_api_token}
Add ?column= parameters to select specific columns, and &filter= to limit the date range. The API token is stored encrypted in n8n's credential manager — never exposed in a database field.
Step 3 — Spreadsheet File node
Converts the JSON response into an .xlsx file. This is a native n8n node — no code needed. You can control column names, ordering, and sheet names.
Step 4 — Send Email node
Sends the email with the Excel file attached. Supports Gmail, SMTP, Outlook, etc. The email body can include dynamic data (record count, date range, etc.).
---
Why this is worth considering
Password handling — Jorge's approach stores the password in plain text in a table field. With n8n, the API token is encrypted in the credential store.
Complexity — Jorge's approach requires 5 components (2 Formula-URLs, 2 triggers, 1 hidden field). The n8n approach uses 4 nodes in a straight line.
Excel formatting — Jorge's approach exports the raw view with no control. With n8n, you have full control: rename columns, add calculations, merge data from multiple tables into one report.
Filtering — Jorge's approach requires hacking URL parameters (af_YYYf=). n8n uses native API filters (filter=, top=).
Debugging — Jorge's approach offers no visibility into which step failed. n8n shows each node's input and output in the execution log.
Multiple reports — Jorge's approach requires duplicating the entire structure for each report. In n8n, you duplicate the workflow or parameterize it.
The biggest hidden advantage: with n8n you can transform the data between fetching and generating the Excel — rename columns to client-friendly names, calculate totals, format dates, even combine data from multiple tables into one report. Jorge's approach exports the view as-is with no transformation possible.
---
n8n is free and open-source (https://n8n.io), so there's no cost barrier. That said, if you want to stay 100% inside TeamDesk, Jorge's solution works — just consider creating a dedicated read-only service account instead of using your personal password.