--- title: "RequiredFields" slug: "requiredfields" updated: 2026-06-17T18:12:58Z published: 2026-06-17T18:12:58Z canonical: "docs.datajet.app/requiredfields" stale: true --- > ## 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 Validates that the specified fields are present, failing the script if any are missing. The method accepts two forms. ## Form 1 — explicit field list | Key | Value(s) | Description | | --- | --- | --- | | method | `"RequiredFields"` | Checks that the listed fields are present. | | fields | array | Fully qualified fields that must exist, e.g. `table.field1`. | | project | `"MyProject"` | Name of the project. | ```json { "method": "RequiredFields", "fields": ["table.field1", "table.field2", "table.field3", "table.field4"], "project": "MyProject" } ``` ## Form 2 — from an export template | Key | Value(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. | ```json { "method": "RequiredFields", "exportTemplate": "templateName", "table": "tableName", "project": "MyProject" } ```