Skip to content

ListDocuments

Lists published documents in the specified folder.

1
$Documents.ListDocuments(folderId: string, identity?: ( string | Identity )):DataTable

Parameters

string folderId
    The ID of the folder to list documents from.

( string | Identity ) identity optional
    Optional identity for ACL-filtered listing. If omitted, listing uses the trusted script context without user ACL filtering. This argument does not change the context of subsequent document operations.

Returns

A DataTable with Id, Title, ContentType, CreateDate, CreatedBy, State, and Version columns.

Remarks

Selects the latest Published version per family in this folder, excluding newer unpublished versions. folderId is a GUID, not a folder path. Child folders are not traversed.

See Also