DemandFlow Support Centre

DVERSION: Document Version

ReferenceEntity Reference16/04/2026Updated 16/04/2026
A document version with workflow status, file upload, review/approval panels, and comment threads.

DVERSION: Document Version

A document version with workflow status, file upload, review/approval panels, and comment threads.

Default definition. This article describes the default DVERSION definition shipped with DemandFlow. Administrators can add, remove, rename, or re-type fields, change which ones are required, and alter the layout from the Definitions screen in Settings. Your tenant's current schema may differ from what is shown here. To read the current definition at any time, GET the DEFINITION object whose id matches DVERSION.

Entity properties

PropertyValue
Entity codeDVERSION
Display nameDocument Version
PluralDocument Versions
Level12041

Use cases

DVERSION represents a specific version of a document record (DRECORD), linked via comboKey SUB|DRECORD|DVERSION. The version workflow follows a QMS-compliant lifecycle: Draft > Under Review > Pending Approval > Approved > Released > Obsolete/Rejected. Status transitions are permission-controlled (controller role required), with some terminal states (Approved, Released, Rejected, Obsolete) restricted to controllers. The file upload uses singlefile mode with singlefile:true, restricted to PDF/DOC/DOCX. The setmime and setsize properties auto-populate mimetype and filesize fields from the uploaded file. Comments (DCOMMENT) are linked via the four-part comboKey SUB|DRECORD|DVERSION|DCOMMENT. The Reviews and Approvals panels use custom row types (dversionreviews, dversionapprovals) with panel-level visibility conditions that show them only when the version has reached the appropriate workflow stage. The permissionsFunc getPermissionsDversion provides version-specific access control.

Fields

Version Information

FieldTypeRequiredNotes
reftextVersion ref.. Read only.
namenumberYese.g. 1.0, 1.1, 2.0 Read only.
revisionNotetext (multi-line)Revision Note.
statusenumYesValid ids: draft (Draft), under_review (Under Review), pending_approval (Pending Approval), approved (Approved), released (Released), rejected (Rejected), obsolete (Obsolete).
ownerIdreference → userCreated By. Read only.
createddateCreated Date. Read only.
approvedByreference → USERApproved By. Read only.
approvedDatedateApproval Date. Read only.

File Information

FieldTypeRequiredNotes
mimetypetextMime type. Read only.
filesizetextFile size (bytes). Read only.

Attachments

FieldTypeRequiredNotes
attachmentsfileAllowed types: any.

Relationships

  • Lookup: approvedBy (reference → USER).
  • Related list: DCOMMENT, comboKey format SUB|DRECORD|DVERSION|DCOMMENT.

Creating a Document Version via the API

POST /v1/objects
Authorization: Bearer <your-pat>
Content-Type: application/json

{
  "entity":   "DVERSION",
  "level":    12041,
  "comboKey": "SUB:<your-sub-id>|ENT:",
  "status": "draft",
  "revisionNote": "Example value"
}

Listing Document Versions records

GET /v1/entities/DVERSION/SUB:<your-sub-id>

See also

dversiondocumentversionversionsdocumentversionswithworkflowstatusfileuploadreview

Was this article helpful?

← Back to Knowledge Base