---
category: [Platform and Product Extensions, Administration & Integrations, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Integration]
keyword: [Integrate, Workday Integration, Orchestrate for Integrations, Orchestration, Orchestration Builder]
nav: wcp_docs
parent_url: /wcp_docs/
title: >- 
  Reference: DocumentAccessor Member Functions
layout: subsection
---

<a id="d220e78"></a>
<b>Instance Type: DocumentAccessor</b>

<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td>documentId</td><td>Arguments: <ul><li>id (String)
</li></ul> <p>Return Type:</p><ul><li>DocumentAccessor
</li></ul> Filters event documents for documents matching the specified document ID.</td></tr><tr><td>documentIds</td><td>Arguments: <ul><li>ids (StringList)
</li></ul> <p>Return Type:</p><ul><li>DocumentAccessor
</li></ul> Filters event documents for documents matching any of the document IDs in the specified list.</td></tr><tr><td>get</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns the first document matching the applied filters.</td></tr><tr><td>get</td><td>Arguments: <ul><li>n (Number)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns the nth document matching the applied filters.</td></tr><tr><td>getDocumentCount</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of event documents.</td></tr><tr><td>getDocumentId</td><td>Arguments: <ul><li>n (Number)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns the documentId of the event document at the specified index.</td></tr><tr><td>getDocumentIds</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>StringList
</li></ul> Returns the documentIds of the event documents.</td></tr><tr><td>getFileName</td><td>Arguments: <ul><li>n (Number)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns the filename of the event document at the specified index.</td></tr><tr><td>getFileNames</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>StringList
</li></ul> Returns the filenames of the event documents.</td></tr><tr><td>getFileSize</td><td>Arguments: <ul><li>n (Number)
</li></ul> <p>Return Type:</p><ul><li>NumberList
</li></ul><p>Returns the file size of the event document at the specified index.</p></td></tr><tr><td>getFileSizes</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>NumberList
</li></ul><p>Returns the file sizes of the event documents.</p></td></tr><tr><td>getLabelWids</td><td>Arguments: <ul><li>n (Number)
</li></ul> <p>Return Type:</p><ul><li>StringList
</li></ul><p>Returns the label WIDs of the event document at the specified index.</p></td></tr><tr><td>getLabelWids</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>StringList
</li></ul><p>Returns the label WIDs of the event documents.</p></td></tr><tr><td>getLabels</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>StringList
</li></ul> Returns the labels of the event documents.</td></tr><tr><td>iterator</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>DataIterator
</li></ul> Returns an iterator of the event documents with any filters and sorting previously applied to this object.</td></tr><tr><td>labelWids</td><td>Arguments: <ul><li>ids (StringList)
</li></ul> <p>Return Type:</p><ul><li>DocumentAccessor
</li></ul> Filters event documents for documents matching all of the label IDs in the specified list.</td></tr><tr><td>labelWidsMatchAny</td><td>Arguments: <ul><li>ids (StringList)
</li></ul> <p>Return Type:</p><ul><li>DocumentAccessor
</li></ul> Filters event documents for documents matching any of the label IDs in the specified list.</td></tr><tr><td>labels</td><td>Arguments: <ul><li>labels (StringList)
</li></ul> <p>Return Type:</p><ul><li>DocumentAccessor
</li></ul> Filters event documents for documents matching all of the labels in the specified list.</td></tr><tr><td>labelsMatchAny</td><td>Arguments: <ul><li>labels (StringList)
</li></ul> <p>Return Type:</p><ul><li>DocumentAccessor
</li></ul> Filters event documents for documents matching any of the labels in the specified list.</td></tr><tr><td>minFileSize</td><td>Arguments: <ul><li>size (Number)
</li></ul> <p>Return Type:</p><ul><li>DocumentAccessor
</li></ul> Filters event documents for documents with a file size greater than or equal to the specified size.</td></tr><tr><td>name</td><td>Arguments: <ul><li>name (String)
</li></ul> <p>Return Type:</p><ul><li>DocumentAccessor
</li></ul> Filters event documents for documents matching the specified filename.</td></tr><tr><td>names</td><td>Arguments: <ul><li>names (StringList)
</li></ul> <p>Return Type:</p><ul><li>DocumentAccessor
</li></ul> Filters event documents for documents matching any of the filenames in the specified list.</td></tr><tr><td>sortFileNameAsc</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>DocumentAccessor
</li></ul> Sorts event documents alphabetically in ascending order.</td></tr><tr><td>sortFileNameDesc</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>DocumentAccessor
</li></ul> Sorts event documents alphabetically in descending order.</td></tr><tr><td>sortFileSizeAsc</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>DocumentAccessor
</li></ul> Sorts event documents by file size in ascending order.</td></tr><tr><td>sortFileSizeDesc</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>DocumentAccessor
</li></ul> Sorts event documents by file size in descending order.</td></tr><tr><td>toString</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns a string representation of the value.</td></tr></tbody></table><br/>

