Skip to main content
All CollectionsSystem TasksWorking with Groovy ScriptsGroovy Script Library
Groovy Script - Update the Document Title to Uppercase, after the Document is Uploaded

Groovy Script - Update the Document Title to Uppercase, after the Document is Uploaded

Updated over 3 weeks ago

Description: Sample Groovy script to update the document title to uppercase, after the document is uploaded.

Context: Document

Remark: Accessible in 'Post' task mode only.

Script:

def execute(){

DocumentVO document = documentService.getDocumentDetails();

documentContext.getDocVO().docTitle = document.getDocTitle().toUpperCase();

documentService.updateDocument(documentContext);

}



Did this answer your question?