Context Variables
Main Variables
document_data (alias: doc)
document_data (alias: doc)document_data = {
"document_json": { ... }, # The document itself
"fields": [ ... ], # Array of all fields
"fields_dict": { ... }, # Fields indexed by name
"tables": [ ... ], # Array of all tables
"tables_dict": { ... }, # Tables indexed by name
}document_json
document_jsondocument_json = {
"doc_id": "uuid-...",
"org_id": "uuid-...",
"sub_org_id": "uuid-..." or None,
"doc_type": "INVOICE",
"sub_doc_type": None,
"status": "ready_for_validation",
"date_format_pattern": "%d.%m.%Y", # For date formatting
"amount_format_locale": "de_DE", # For amount formatting
"fields": [ ... ], # Field array
"tables": [ ... ], # Table array
"po_items": [ ... ], # PO matching results
"po_match_status": "matched" | None,
"already_verified_po_numbers": [ ... ],
}fields and fields_dict
fields and fields_dicttables and tables_dict
tables and tables_dictuser_id, org_id, user
user_id, org_id, userCommon Access Patterns
Read and write fields
Iterate tables
Fulltext search in document
Sub-org routing
Last updated
Was this helpful?