Skip to main content

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

Description: Sample Groovy Script to update the status of all associated documents of the current form's latest message or all messages.

Context: App

App Type: Select an active app type as required.

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?