
cpf.documentSetLastUpdated( doc as String, last-updated as Date ) as null
Set the date and time of the document's last update.
| Parameters | |
|---|---|
| doc | The URI of the document. |
| last-updated | The date and time at which the document was last updated, typically fn:current-dateTime(). |
const cpf = require('/MarkLogic/cpf/cpf');
declareUpdate();
cpf.documentSetLastUpdated('/myDocs/example.xml',
fn.currentDateTime());
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.