Skip to main content
All CollectionsSystem TasksWorking with Groovy ScriptsGroovy Script Library
Groovy Script - Update Document title to upper case, after Document uploaded
Groovy Script - Update Document title to upper case, after Document uploaded
Updated this week

Description: Sample groovy script to update document title to upper case, after document 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?