企业微信(WeCom)-办公 icon

企业微信(WeCom)-办公

企业微信办公功能 - 文档、微盘、邮件、日程、待办、会议、直播、打卡、审批、汇报、人事、会议室、紧急通知、公费电话

Actions298

文档 → [智能表格] 更新记录

AI-generated

Summary

Updates records in a WeCom smart table by specifying record IDs and field-level values.

Inputs

  • docid (required) — 智能表格的docid (smart table document ID)
  • sheet_id (required) — 子表的sheet_id (sub-table/sheet ID within the document)
  • key_type — 指定记录中字段值的key类型:字段标题(推荐)或字段ID,默认为字段标题
  • recordsCollection (required) — 要更新的记录列表,单次更新建议在500行内

Output shape

update confirmation

Return shape not explicitly declared in the provided properties or source body; typical n8n WeCom node responses include a success flag and/or updated record identifier(s).

Examples

Example 1: 更新单条记录的文本字段

设置 docid 为 "12345",sheet_id 为 "67890",key_type 保持默认(字段标题),在 recordsCollection 中添加一条记录,record_id 为 "rec1",cellValues 包含 field_key "备注",value_type "text",text_content "已完成"

Example 2: 批量更新多字段

设置 docid 及 sheet_id,key_type 为字段ID,recordsCollection 包含多条记录,每条记录通过 record_id 识别,cellValues 依次设置数值型、复选框等字段的 field_key 和对应 value_type

Example 3: 更新日期型字段

设置 docid、sheet_id 及记录 ID,在 cellValues 中设置 value_type 为 "date_time",date_value 填入毫秒时间戳(如 1609459200000)以更新日期字段

Links

Discussion