Skip to main content
All CollectionsSystem TasksWorking with Groovy ScriptsGroovy Script Library
Groovy Script - Update status of all the associated documents of current form
Groovy Script - Update status of all the associated documents of current form
Updated yesterday

Description: Sample groovy script to update status of all the associated documents of current form's latest or all messages.

Context: App

Remark: Supported in Post Mode

Script:

def execute(){

formService.updateAssociatedDocsStatus(FormDetailsOption.ALL_MSG ,"Approved"); // Param: 1. ALL_MSG & LATEST_MSG options are supported. 2. Doc status name

}



Did this answer your question?