0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

rex0220 計算式プラグイン テーブル行IDをセット

Last updated at Posted at 2025-04-14

計算式プラグインで、文字列項目にテーブル行IDをセットしてみます。

概要

kintone のテーブル行には、レコード保存時に id が設定されます。
この id は、アプリ内でユニークな値です。
計算式プラグインで、レコード保存時に文字列項目へテーブル行IDをセットします。

※ Ver.89 以降は、ROWID()で行IDを取得できます。

2025-04-14_15h57_48.png

操作例

2025-04-14_16h06_56.gif

計算式プラグイン設定

計算式に「更新日時」を指定することにより、レコード保存後イベントで計算式が実行されます。

2025-04-14_16h00_05.png

Ver.89 以降: ROWID()で行IDを取得できます。

// テーブル.番号 NUMBER
ROWNO(テーブル)+1

// テーブル.ID SINGLE_LINE_TEXT
ROWID()

Ver.88 以前:

// テーブル.番号 NUMBER
ROWNO(テーブル)+1

// テーブル.ID SINGLE_LINE_TEXT
LET(
  rowid, DIC_ITEM(ARRAY_GET(テーブル,ROWNO(テーブル)),"id"),
  IF(AND(更新日時,rowid!="null"),rowid)
)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?