When to use this endpoint

Load a table form definition together with the saved positional table rows for one job.

Authentication and permissions

Authenticate with signed API-key fields or a logged-in CRM session. These calls use the authenticated account’s data; the handler has no additional job-page, department, assignee or client-admin permission check unless stated below.

Parameters

ParameterTypeRequiredDescription
idInteger stringYesJob ID, converted with intval; the result must be positive. This selects a physical job ID, not an app ID or job reference.
tableIdInteger stringYesPresence is required; converted with intval, without a positive-value check. This is the table form ID, not a main-form field name.

Example request

$table = FM_api('Job_getTableValues', ['id' => '1042', 'tableId' => '1088']);

Example response

{"fields":[{"name":"Quantity","type":"number"}],"data":[[2],[1.5]]}

Errors and unusual responses

ResponseCondition
{"error":"not logged in"}No authenticated tenant context is available. Invalid signed credentials can be rejected by the dispatcher before the handler runs.
{"error":"missing or invalid parameter: id"}id is absent or nonpositive.
{"error":"missing or invalid parameter: tableId"}tableId is absent.

Legacy application errors may be returned with HTTP 200. Check the decoded response for error, not only the HTTP status.

Behaviour and edge cases

  • fields is the decoded current forms.fields JSON, including any saved definition properties. data is the stored subform_values entry keyed by tableId, or [] when absent.
  • A missing/deleted job yields empty data, not a job-not-found error. Missing/invalid table definition JSON can yield fields=null.
  • Only the job query excludes deleted rows. The table form is read independently; it is not checked to be referenced by the job’s main form.
  • Rows are positional cells matching the form definition, not objects keyed by column name. No sorting, pagination, validation, summing or writes occur.

See it in Fieldmotion

CRM1

In the form-data report, open a job table. pageReportFormData.js calls Job_getTableValues from tableShow(id,tableId) and renders fields/data together.

CRM2

No direct CRM2 caller was found in the reviewed source. For batched job fields, see Jobs_getById.

Related endpoints