Skip to content

updateNotableRecords 更新关联字段(unidirectionalLink)返回 record not found #5

Description

@andyliao14

问题描述

updateNotableRecords API 在更新**单向关联(unidirectionalLink)**类型字段时返回 "record not found" 错误。

复现步骤

1. 插入带关联字段的记录 - 失败

{
  "fields": {
    "归属里程碑": {"linkedRecordIds": ["0GrumJ2B3t"]}
  }
}
// 错误: \"record data not found\"

2. 插入不带关联字段的记录 - 成功

{
  "fields": {
    "任务名称": "测试"
  }
}
// 成功返回记录 ID

3. 更新普通字段 - 成功

{
  "id": "Y9Fbpf1mHs",
  "fields": {
    "任务详情": \"测试更新\"
  }
}
// 成功

4. 更新关联字段 - 失败

{
  "id": "Y9Fbpf1mHs",
  "fields": {
    \"归属里程碑\": {\"linkedRecordIds\": [\"DgsNTH80pZ\"]}
  }
}
// 错误: \"record data not found\"

影响范围

  • 功能: 更新多维表格中的关联字段
  • 场景: 用户无法通过程序更新任务的关联字段

环境信息

  • MCP Server: dingtalk-mcp
  • 表格: DI.ProjectOS — 项目管理平台
  • sheetId: Dct63lM (项目任务表-航运)

相关记录

  • 已有记录的关联字段格式(从 getNotableRecord 获取):
\"归属里程碑\": {
  \"linkedRecordIds\": [\"DgsNTH80pZ\"]
}

临时解决方案

手动在钉钉多维表格界面中编辑关联字段。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions