Starting with V11.0, Cora Orchestration has been renamed to Orchestration AI.
V11.0
Overview
As a workflow developer, you can remove/delete an existing case attachment from an Open case based on file Id, and manage the case attachments easily.
You need to add the Remove Case Attachments built-in command activity in the workflow to enable removing the case attachments.
IMPORTANT
The case attachments can be removed only for cases where status is Open (fldStatus < 3).
Update Case Attachment Properties through built-in command
- Add a Built-In Command activity.
- Select Case Operations> Remove Case Attachments.
- Click Next.
- Add the following command parameters:
- workflowInstanceId: (mandatory), the master or the sub workflow Id of the open case that contains the attachment(s). For example,
wf.MasterWOrkflowInstanceId. - attachmentIds: (mandatory), the attachment Ids from the case selected in the workflowInstanceId.
<<screenshot>>
- workflowInstanceId: (mandatory), the master or the sub workflow Id of the open case that contains the attachment(s). For example,
- Click Finish.
IMPORTANT
Make sure you have Execute permissions in the master workflow.
Error handling
- If
attachmentIddoesn't exist in the provided case, the command completes with no changes and no error. - The command fails (with error code/message) if any of the following conditions are true:
workflowInstanceIdis null or does not exist.attachmentIdis null.- Case status is Completed or Aborted (fldStatus ≥ 3).
- On failure, the workflow engine can stop execution or jump to a compensation activity as configured.