Skip to content

Commit b3c4c1b

Browse files
caoxing9claude
andcommitted
fix(zapier): clear publish warnings — disable input cleaning, link recordId to search
- Set app-level flags.cleanInputData=false so user input reaches Teable untouched (silences the 9 cleanInputData recommendations). - Add search:'find_record.id' to the recordId field on get_record, update_record, and delete_record so users can pick a record via the Find Record search instead of pasting a raw id (clears the 3 "ID field lacks a dynamic dropdown" warnings). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 079d0ef commit b3c4c1b

4 files changed

Lines changed: 14 additions & 0 deletions

File tree

packages/zapier/src/creates/delete_record.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export default {
4141
label: 'Record ID',
4242
type: 'string',
4343
required: true,
44+
// Let users pick a record via the Find Record search instead of pasting
45+
// a raw id (also satisfies Zapier's "ID field needs a dropdown" check).
46+
search: 'find_record.id',
4447
helpText: 'The `rec…` id of the record to delete (e.g. from a trigger step).',
4548
},
4649
],

packages/zapier/src/creates/update_record.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ export default {
6363
label: 'Record ID',
6464
type: 'string',
6565
required: true,
66+
// Let users pick a record via the Find Record search instead of pasting
67+
// a raw id (also satisfies Zapier's "ID field needs a dropdown" check).
68+
search: 'find_record.id',
6669
helpText: 'The `rec…` id of the record to update (e.g. from a trigger step).',
6770
},
6871
dynamicRecordFields,

packages/zapier/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ const App = {
6262
version,
6363
platformVersion,
6464

65+
// Pass user input through untouched. Zapier's default "cleaning" trims
66+
// whitespace and drops empty values, which can silently alter field values
67+
// before they reach Teable. Disabling it globally makes writes predictable.
68+
flags: { cleanInputData: false },
69+
6570
authentication,
6671

6772
beforeRequest: [includeBearerToken],

packages/zapier/src/searches/get_record.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ export default {
5454
label: 'Record ID',
5555
type: 'string',
5656
required: true,
57+
// Let users pick a record via the Find Record search instead of pasting
58+
// a raw id (also satisfies Zapier's "ID field needs a dropdown" check).
59+
search: 'find_record.id',
5760
helpText: 'The `rec…` id of the record to fetch (e.g. from a trigger step).',
5861
},
5962
],

0 commit comments

Comments
 (0)