Skip to main content
All CollectionsSystem TasksWorking with Groovy ScriptsGroovy Script Library
Groovy Script - Update the Status of all the Associated Documents of the Current Form

Groovy Script - Update the Status of all the Associated Documents of the Current Form

Updated over 3 weeks ago

Description: Sample Groovy script to update the status of all the associated documents of the 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?