Skip to content

entity-document-generator-config schema

One config row for the generic engine-entity.document-generator job — generate a structured-data artifact (json/csv) per eligible row via the FileService, store it in a DMS cabinet, and stamp the file id onto the row.

Pull the full JSON Schema: erp schema pull entity-document-generator-config  ·  MCP: erp_get_schema {"name":"entity-document-generator-config"}

Top-level properties

PropertyTypeRequiredNotes
document_codestringyesStable identifier / natural key for idempotent seeding.
source_entitystringyesEntity whose rows get a document.
status_fieldstring
when_status_instringComma-separated statuses a row must be in to be eligible (e.g. COMPLETED for an audit report). Blank = every row.
filter_fieldstringOptional single-column equality pre-filter.
filter_valuestring
target_file_fieldstringyesText column on the source row that receives the generated file id. Its non-blank state IS the dedupe marker.
formatstringone of: json, csv
cabinet_idintegerDMS cabinet id (engine-file) the artifact is stored in. Give this OR cabinet_name.
cabinet_namestringPortable alternative to cabinet_id: the job resolves a cabinet by this name for the tenant, creating it if absent. Preferred for seed-data rows (no hardcoded id).
file_name_templatestringGenerated file name. Supports ${id} ${date} ${ts} ${uuid} and ${field:<name>}. Default: <document_code>-${id}-${date}.<ext>.
include_fieldsstringComma-separated source fields to include in the artifact. Blank = all fields.
child_entitystringOptional child entity whose rows (matched by child_match_field == source id) are embedded (json) alongside the record.
child_match_fieldstringFK column on child_entity pointing at the source row's id.
template_refstringReserved: a print-template id, for the future render_mode:template branch. Not used today (see description).
regeneratebooleanWhen true, regenerate even if target_file_field is already populated.
seeded_bystring
activebooleanyes