Multiple CREATE Actions?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
bkonia
Posts: 98
Joined: Fri Jan 19, 2007 4:41 am
Contact:

Multiple CREATE Actions?

Post by bkonia »

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
Brad S Konia
Hostland
https://www.hostland.com
bkonia
Posts: 98
Joined: Fri Jan 19, 2007 4:41 am
Contact:

Post by bkonia »

Please disregard this posting. I see that the CREATE action supports FOR EACH. Next time, I guess I should read the manual first. LOL!
Brad S Konia
Hostland
https://www.hostland.com
Post Reply