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. |
{
"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. |
{
"method": "RequiredFields",
"exportTemplate": "templateName",
"table": "tableName",
"project": "MyProject"
}