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

Qualifier: `documents`

<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td>documentId</td><td>Arguments: <ul><li>id (String)
</li></ul> Return Type: <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>id (StringList)
</li></ul> Return Type: <ul><li>DocumentAccessor
</li></ul> Filters event documents for documents matching any of the specified document IDs.</td></tr><tr><td>get</td><td>Arguments: <ul><li>None
</li></ul> Return Type: <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> Return Type: <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> Return Type: <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> Return Type: <ul><li>String
</li></ul> Returns the document ID of the event document at the specified index.</td></tr><tr><td>getDocumentIds</td><td>Arguments: <ul><li>None
</li></ul> Return Type: <ul><li>StringList
</li></ul> Returns the document IDs of the event documents.</td></tr><tr><td>getFileName</td><td>Arguments: <ul><li>n (Number)
</li></ul> Return Type: <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> Return Type: <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> Return Type: <ul><li>NumberList
</li></ul> Returns the file size of the event document at the specified index.</td></tr><tr><td>getFileSizes</td><td>Arguments: <ul><li>None
</li></ul> Return Type: <ul><li>NumberList
</li></ul> Returns the file sizes of the event documents.</td></tr><tr><td>getLabelWids</td><td>Arguments: <ul><li>None
</li></ul> Return Type: <ul><li>StringList
</li></ul> Returns the label WIDs of the event documents.</td></tr><tr><td>getLabelWids</td><td>Arguments: <ul><li>n (Number)
</li></ul> Return Type: <ul><li>StringList
</li></ul> Returns the label WIDs of the event document at the specified index.</td></tr><tr><td>getLabels</td><td>Arguments: <ul><li>None
</li></ul> Return Type: <ul><li>StringList
</li></ul> Returns the labels of the event documents.</td></tr><tr><td>getLabels</td><td>Arguments: <ul><li>n (Number)
</li></ul> Return Type: <ul><li>StringList
</li></ul> Returns the labels of the event document at the specified index.</td></tr><tr><td>iterator</td><td>Arguments: <ul><li>None
</li></ul> Return Type: <ul><li>DataIterator
</li></ul> Returns an iterator of the event documents, taking account of any filters and sorting previously applied to the object.</td></tr><tr><td>labelWids</td><td>Arguments: <ul><li>ids (StringList)
</li></ul> Return Type: <ul><li>DocumentAccessor
</li></ul> Filters event documents for documents matching all of the specified label IDs.</td></tr><tr><td>labelWidsMatchAny</td><td>Arguments: <ul><li>ids (StringList)
</li></ul> Return Type: <ul><li>DocumentAccessor
</li></ul> Filters event documents for documents matching any of the specified label IDs.</td></tr><tr><td>labels</td><td>Arguments: <ul><li>labels (StringList)
</li></ul> Return Type: <ul><li>DocumentAccessor
</li></ul> Filter event documents for documents matching all of the specified labels.</td></tr><tr><td>labelsMatchAny</td><td>Arguments: <ul><li>labels (StringList)
</li></ul> Return Type: <ul><li>DocumentAccessor
</li></ul> Filter event documents for documents matching any of the specified labels.</td></tr><tr><td>minFileSize</td><td>Arguments: <ul><li>size (Number)
</li></ul> Return Type: <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> Return Type: <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> Return Type: <ul><li>DocumentAccessor
</li></ul> Filters event documents for documents matching any of the specified filenames.</td></tr><tr><td>sortFileNameAsc</td><td>Arguments: <ul><li>None
</li></ul> Return Type: <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> Return Type: <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> Return Type: <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> Return Type: <ul><li>DocumentAccessor
</li></ul> Sorts event documents by file size in descending order.</td></tr></tbody></table><br/>

