We have requirement to attach file(s) to each line item in a grid view. The grid is bound to data class. Each of the line item will be created as a work object of a different case type upon submit. Each of the files attached should be available for view/download on the respective case work objects.
Using OOTB attach content is linking the files to the work object where the gird is shown not to the resultant work objects.
Any design approach to achieve this would be of great help.
In the OOTB Attach Content control there is an option in the Attachments configuration place where you can mention that you want to attach to a page instead of Work Item. If you select this Page then the uploaded file content will be available in the Page configured. You can have multiple files made available on each row of the data class by providing the Page name as an embeded page property.
Once submitted each line item will be iterated to create the work object at the same time the embeded page can be used to create the attachment and attach to the respective work object created.
Attached below the screen shot of the configuration..