Spanish Total.js
Español
Documentación Para agentes de IA
Contenido

Hook and action data

The JSON that Tables sends to hooks and actions.

.md Sitio web

Esta página aún no está traducida. Estás leyendo el original.

En esta página

Tables sends JSON in a POST request to the addresses of hooks and actions.

Hooks

{
    "tableid": "t118h7",
    "app": "Tables",
    "user": {
        "id": "admin",
        "name": "Jane Doe",
        "groups": []
    },
    "data": {
        "id": "JasptJ1cg61f",
        "name": "Desk lamps",
        "rev": 1,
        "dtcreated": "2026-11-20T05:55:08.930Z",
        "dtupdated": null,
        "createdby": "Jane Doe",
        "updatedby": null,
        "x01": "20260006",
        "x02_id": "JasodS1c561f",
        "x02": "Northwind Supplies",
        "x04": 10,
        "x05": "new"
    }
}
FieldContent
tableidThe ID of the table.
appThe name of the app from the config file.
userThe user or API token that made the change.
dataThe record after the change. For a removed record, the record before it was removed.

In data, each column appears under its ID. For a relation column, <id>_id is the ID of the linked record and <id> its name. rev is the revision number of the record.

Actions

{
    "id": "JasodS1g561f",
    "source": "detail",
    "tableid": "t118h7",
    "table": "Orders",
    "action": "update",
    "app": "Tables",
    "data": { "id": "JasodS1g561f", "name": "Office chairs", "x04": 1300 },
    "user": { "id": "admin", "name": "Jane Doe", "sa": true, "groups": [] }
}
FieldContent
idThe ID of the record, empty for a new record.
sourcedetail when run from the record window, list when run from the list.
tableid, tableThe ID and the name of the table.
actionupdate for an existing record, create for a new one.
dataThe values of the record.
userThe user who ran the action: id, name, email, sa, groups, language and color.

The answer

  • Hooks: Tables does not use the answer.
  • Actions: if the answer is a text, Tables shows it to the user in a message.
Hecho en Europa