Skip to content

You can use the binders and binder_node__sys objects to query binders for the following:

  • Given a document, or a set of documents, find binders which contain them.
  • Given a binder, or a set of binders, find documents contained with them.

The binders object is an extension of the documents object and supports the same VQL functions. Binders are available for query in v18.2+.

The binders object exposes the binder_nodes__sysr relationship. This relationship is a "down" relationship and points to binder_nodes__sys child objects.

The binder_node__sys object exposes the following relationships:

NameDescription
binder__sysrA parent lookup relationship that points to the binders object.
document__sysrA lookup relationship to a document at the node. This is applicable only if the node is a document (or a binder).
child_nodes__sysrA self-referencing "down" relationship pointing to binder_node__sys child objects. This is applicable only if the node is a section.
parent_node__sysrA self-referencing parent lookup relationship pointing to a binder_node__sys object at the parent node.

This metadata is only available via VQL query and cannot be retrieved using the standard metadata API.

The following fields are queryable for the binder_node__sys object:

NameDescription
idThe node ID.
name__vThe section name. This field has a value for nodes of type "section" and is null for document and binder nodes.
parent_binder_id__sysID of the parent binder where this node lives.
parent_binder_major_version__sysThe major version of the parent binder.
parent_binder_minor_version__sysThe minor version of the parent binder.
parent_node_id__sysID of the parent binder_node__sys object.
section_id__sysDocument ID or section ID specific to the binder.
parent_section_id__sysSection ID of the parent node, such as "rootNode".
order__sysThe ordinal position of the node within its parent.
content_id__sysDocument ID or binder ID.
content_major_version__sysThe major version of the content.
content_minor_version__sysThe minor version of the content.
type__sysPoints to the standard picklist binder_node_types__sys.
created_date__vTimestamp when the node was created.
created_by__vID of the user who created the node.
modified_date__vTimestamp when the node was updated.
modified_by__vID of the user who updated the node.

The following are examples of standard binder queries.

Find latest steady-state versions of binders, the documents they contain, and where within the binder structure the document is contained:

SELECT LATESTVERSION id, (SELECT parent_node_id__sys, parent_node__sysr.type__sys, parent_node__sysr.name__v, document__sysr.id, document__sysr.name__v FROM binder_nodes__sysr) FROM ALLVERSIONS binders WHERE status__v = steadystate()

Binder Query for Specific Documents

Section link for Binder Query for Specific Documents

Find binders containing specific documents:

SELECT binder__sysr.id, binder__sysr.name__v FROM binder_node__sys WHERE type__sys = 'document' AND document__sysr.name__v = 'Test'

Query Documents Within a Specific Section

Section link for Query Documents Within a Specific Section

Find documents within sections named "Test Section".

SELECT binder__sysr.id, document__sysr.id FROM binder_node__sys WHERE type__sys = 'document' AND parent_node__sysr.type__sys = 'section' AND parent_node__sysr.name__v = 'Test Section'

Query Binders and Sections Containing Documents

Section link for Query Binders and Sections Containing Documents

Find binders and section names containing specific documents.

SELECT binder__sysr.id, binder__sysr.name__v, parent_node__sysr.name__v, parent_node__sysr.type__sys FROM binder_node__sys WHERE type__sys = 'document' AND document__sysr.name__v 'Test'