Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

How can I insert(or append) a row with linked value? #72

@kimseunghyuck

Description

@kimseunghyuck

I want to add rows which have "linked values" by each row of a table, automatically.
(This table have some columns which are 'link to other records' or linked to other column by formula)
So I wrote python script like below, refering to the programming manual:

from seatable_api import Base, context
server_url = context.server_url or 'https://cloud.seatable.io'
api_token = context.api_token or 'xxx'

base = Base(api_token, server_url)
base.auth()

table_name = "xxx"
rows = base.list_rows(table_name)

for rowdata in rows:
  rowid = rowdata['_id'] 
  base.insert_row(table_name, rowdata, rowid)

Inserting row was successful by upper script, and there was no problem for other columns,
but the columns which are 'link to other records' or linked to other column by formula are added with no values.

I think I have to use special method to handle these columns.
Could you kindly give me some possible way with some scripts for example?

Sincerely,

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