飞书多维表格数据同步 - 在多个多维表格或外部数据源之间同步数据。 **功能**: - 在两个多维表格之间同步数据; - 从外部数据源导入数据
IntentToolactionRequired ParamsList bitablesfeishu_bitable_applist-List tablesfeishu_bitable_app_tablelistapp_tokenQuery recordsfeishu_bitable_app_table_recordlistapp_token, table_idCreate recordsfeishu_bitable_app_table_recordbatch_createapp_token, table_id, recordsUpdate recordsfeishu_bitable_app_table_recordbatch_updateapp_token, table_id, recordsDelete recordsfeishu_bitable_app_table_recordbatch_deleteapp_token, table_id, record_ids
json
// Step 1: Read source data
{
"action": "list",
"app_token": "source_token",
"table_id": "source_table",
"page_size": 500
}
// Step 2: Transform and write to destination
{
"action": "batch_create",
"app_token": "dest_token",
"table_id": "dest_table",
"records": [
{"fields": {"字段A": "值1", "字段B": "值2"}}
]
}
Compare records by unique identifier and handle conflicts:
json
// Pseudo-code for sync:
// 1. Fetch both bitables
// 2. Compare by unique field (如: 任务ID)
// 3. If source is newer: update dest
// 4. If dest is newer: update source (or skip)
// 5. Report sync results
{
"action": "list",
"app_token": "token",
"table_id": "table",
"filter": {
"conjunction": "and",
"conditions": [{"field_name": "同步状态", "operator": "is", "value": ["未同步"]}]
}
}
Convert CSV to bitable records:
csv
任务名称,负责人,截止日期,优先级
任务A,张三,2026-04-01,高
任务B,李四,2026-04-02,中
json
{
"action": "batch_create",
"app_token": "Mxxx",
"table_id": "Txxx",
"records": [
{"fields": {"任务名称": "任务A", "负责人": [{"id": "ou_xxx"}], "截止日期": 1743446400000, "优先级": "高"}},
{"fields": {"任务名称": "任务B", "负责人": [{"id": "ou_yyy"}], "截止日期": 1743532800000, "优先级": "中"}}
]
}
Use a special field to track sync status:
唯一标识数据同步时间同步状态TASK_001{...}1743446400000已同步json
{
"action": "batch_update",
"app_token": "Mxxx",
"table_id": "Txxx",
"records": [
{"record_id": "rec_xxx", "fields": {"同步状态": "已同步", "同步时间": 1743446400000}}
]
}
VersionPriceFeaturesFree¥0Manual sync, up to 100 recordsPro¥15/monthAuto sync, 500 records, conflict resolutionTeam¥45/monthScheduled sync, API, unlimited
User says: "把A表格的任务同步到B表格,只同步未完成的任务"
Execute:
Type IDField Type1Text2Number3Single Select4Multi Select5Date7Checkbox11Person13Phone15URL17Attachment1001Created Time1002Modified Time