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
executeRecordUploadAttachment(shortcuts/base/record_upload_attachment.go:264)第一步 fetchBaseField(record_upload_attachment.go:453):同样 GET .../fields/{原值},传名称在这一步就 404
而飞书 GET /fields/{field_id} 端点要求 field_id 必须是真实字段 ID(fldxxx),不认名称,所以传名称必然失败。
代码里其实已经有现成的「按 id 或 name 匹配」helper —— resolveFieldRef(shortcuts/base/helpers.go:652)和 listAllFields,但生产代码从未调用它们做名称解析(只在 helpers_test.go 被测试),属于死代码。
--table-id 的 flag 描述也写「table ID (must start with tbl if ID) or name」,但 baseTableID(shortcuts/base/base_shortcut_helpers.go:26)只做 strings.TrimSpace,同样不解析表名。
Activity
huangsheng0415-hash commentedon Nov 25, 2026
同学,我这边测试是支持字段名的,您那边能提供下有问题的样本吗?