I'm laughing because I just see in your message why it doesn't work.
I don't use Attachments but Case Information widget. That's really serious, I'm getting old 😅
Thanks a lot Dave, you opened my eyes.
Original Message:
Sent: Tue January 06, 2026 12:10 PM
From: DAVE PERMAN
Subject: Multiple doc add on Case Management
Hi Nicolas.
Your script seems to work properly for me. I assume your step has a response with that exact name ("Send demand") and that is the button you are clicking.
I guess the question is what do you mean by "does not work"?
In my test, I have added two FileNet process attachment fields to the process and exposed both at the step that is sent to the user. If I leave either attachment empty I get your error message. When I set both attachments, the step completes as expected and the process moves on with the attachments in tow, ready to be filed in the case at a content component step later on in the process.
I added a debugger; statement in your script so I can drop into the browser debugger and step through the code after I click the response button.

------------------------------
DAVE PERMAN
Original Message:
Sent: Tue January 06, 2026 03:04 AM
From: Nicolas Christian COLY
Subject: Multiple doc add on Case Management
Hi Dave,
Thanks a lot for your feedback.
I finally added a create step and automatically open a work task to allow users to add docs.
Now am trying to control attachment validation, reusing a script but it does not work.
Could you please take a look at it?
Regards!
var workItemEdt = payload.workItemEditable;var coord = payload.coordination;var propertiesCollection = payload.workItemEditable.propertiesCollection;console.log("Properties collection -->");console.log(propertiesCollection);require(["icm/model/properties/controller/ControllerManager", "icm/base/Constants"],function(ControllerManager, Constants) { coord.participate(Constants.CoordTopic.VALIDATE, function(context, complete, abort) { if (context[Constants.CoordContext.WKITEMRESPONSE] === "Send demand") { function validateWItemAttachments(propertiesCollection) { var emptyattachment = false; console.log("emptyattachment Flag is--" + emptyattachment); if (propertiesCollection) { var k; for (k in propertiesCollection) { if (propertiesCollection.hasOwnProperty(k)) { var p = propertiesCollection[k]; if (p.dataType == "xs:attachment") { console.log("Found Attachment Field--" + k); console.log(p); console.log(p.value); p.retrieveAttachmentContents(function(items) { console.log(items); if (items.length == 0) { emptyattachment = true; } }); } } } } return emptyattachment; } var inValidAttachmentsFlag = validateWItemAttachments(propertiesCollection); if (inValidAttachmentsFlag) { var messageDialog = new ecm.widget.dialog.MessageDialog({ text: "Attachment missing, please attach document to proceed further." }); messageDialog.show(); abort({'silent': true}); } else { complete(); } } else { complete(); } });});
------------------------------
Nicolas Christian COLY
Original Message:
Sent: Mon January 05, 2026 04:59 PM
From: DAVE PERMAN
Subject: Multiple doc add on Case Management
Hello!
With the older IBM Case Manager (ICM) v53x from 2018, you are limited to creating your own custom widgets to handle document uploading on the add case page. Since the case itself has not yet been created, you would need to upload the documents to a temporary location (probably in the CPE object store) and reunite them with the new case after it is created using an automatic case activity that leverages the content component steps in the PE.
With BAW case (the upgrade from ICM), this is much easier using a Client Side Human Service (CSHS) for your add case page and one of the several Content Management UI views available in the Content Management toolkit. You could, for example, add a document drop zone view and point it at a unique temporary staging folder in your TOS that you can create on the fly. You would then add an automatic BAW case activity that then uses some of the built-in content management service operations to file the upload documents into the new case and remove the temporary folder.
------------------------------
DAVE PERMAN
Original Message:
Sent: Mon December 22, 2025 09:15 AM
From: Nicolas Christian COLY
Subject: Multiple doc add on Case Management
Hi Community,
I'm trying to add multiple docs when creating a new case but do not find the right way.
Does someone have any feedback about that please?
Using traditional case manager.
Regards!
------------------------------
Nicolas Christian COLY
------------------------------