You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(zoho-desk): overwrite operation-scoped params instead of omitting them
The block mapper scoped params by destructuring them out of the spread, on the
assumption that a key left out of the return value never reaches the tool. It
does: both call sites merge the mapper's output on top of the original inputs
(`{ ...inputs, ...transformedParams }`), so an omitted key is restored.
The serializer is what actually held this together, and it has a gap — an
advanced subBlock with a retained value is emitted for every operation while the
block's advanced toggle is off, because that branch returns on isNonEmptyValue
without evaluating the subBlock's condition. So a Sort By set on List Tickets
reached List Comments, and a ticket Include reached Get Contact, each rejected
by Zoho. Out-of-range from/limit reached the wire for the same reason.
Every scoped param is now assigned unconditionally, undefined included, so the
merge cannot resurrect a stale value.
Also fixes a crash this branch introduced: clearing the Departments multi-select
stores [], which reached the comma-list normalizer and threw on .split. The
helper now takes arrays, which is what that subBlock actually stores.
The block-to-tool tests now model the real merge rather than the mapper's return
value alone — the previous version passed while production threw on the same
input. Corrects two comments that misstated where Zoho documents customFields
and errorMessage, and splits the shared include subBlock, since Get Ticket
accepts contract and skills and List Tickets does not.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/en/integrations/zoho_desk.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,12 +54,12 @@ List tickets from a Zoho Desk organization with optional filters. Returns a list
54
54
|`apiDomain`| string | No | Zoho Desk data-center REST base URL |
55
55
|`orgId`| string | Yes | Zoho Desk organization ID |
56
56
|`from`| number | No | Pagination start index \(0-based\)|
57
-
|`limit`| number | No | Number of tickets to return \(1-100, default 10\)|
57
+
|`limit`| number | No | Number of tickets to return \(1-100\)|
58
58
|`departmentIds`| string | No | Filter by department ID \(comma-separated for multiple\)|
59
59
|`status`| string | No | Filter by status, including custom statuses. Comma-separate to match multiple \(e.g. "Open,On Hold"\)|
60
60
|`priority`| string | No | Filter by priority. Comma-separate to match multiple \(e.g. "High,Urgent"\)|
61
61
|`assignee`| string | No | Filter by assignee: an agent ID, or "Unassigned". Comma-separate to match multiple. |
62
-
|`channel`| string | No | Filter by origin channel\(e.g. Email, Web, Phone\). Comma-separate to match multiple. |
62
+
|`channel`| string | No | Filter by origin channel, spelled as your portal spells it. Comma-separate to match multiple. |
63
63
|`receivedInDays`| number | No | Only tickets whose last customer response was within the last 15, 30, or 90 days \(Zoho filters on customerResponseTime, despite the name\)|
64
64
|`sortBy`| string | No | Sort field: createdTime, customerResponseTime, or responseDueDate. Prefix with - for descending. |
65
65
|`include`| string | No | Comma-separated related data to embed. Allowed: contacts, products, departments, team, isRead, assignee |
0 commit comments