Documentation Index

Fetch the complete documentation index at: https://docs.datajet.app/llms.txt

Use this file to discover all available pages before exploring further.

RequiredFields

Prev Next

Validates that the specified fields are present, failing the script if any are missing.

The method accepts two forms.

Form 1 — explicit field list

KeyValue(s)Description
method"RequiredFields"Checks that the listed fields are present.
fieldsarrayFully qualified fields that must exist, e.g. table.field1.
project"MyProject"Name of the project.
{
  "method": "RequiredFields",
  "fields": ["table.field1", "table.field2", "table.field3", "table.field4"],
  "project": "MyProject"
}

Form 2 — from an export template

KeyValue(s)Description
method"RequiredFields"Checks the fields required by an export template.
exportTemplate"templateName"Export template whose fields must be present. [CONFIRM]
table"tableName"Table to check against. [CONFIRM]
project"MyProject"Name of the project.
{
  "method": "RequiredFields",
  "exportTemplate": "templateName",
  "table": "tableName",
  "project": "MyProject"
}