I have a process with the following set of rules:
1. PICK FROM AttachmentDocument WHERE AttachmentDocument.Contact IS UNDEFINED AND AttachmentDocument.Deal IS UNDEFINED
2. INSERT AttachmentDocument IN OutgoingEmail.Attachments
3. CREATE OrderNumber WITH OrderNumber.OutgoingEmail=OutgoingEmail,OrderNumber.Document=AttachmentDocument
This works perfectly. The user selects a document and the process then attaches the document to an email and creates a new record for that document in the OrderNumber BO.
However, I would like the user to be able to select multiple attachments at once, using PICK ONE OR MORE FROM. If I enable multiple select, then steps 1 and 2 work fine, but in Step 3, it only creates a single record in the OrderNumber BO. Is this possible? If not, it would be nice if Aware IM supported looping, so you could do something like:
FOR EACH AttachmentDocument
CREATE OrderNumber WITH OrderNumber.OutgoingEmail=OutgoingEmail,OrderNumber.Document=AttachmentDocument
END FOR