Working on an iFlow where the XML payload is split using the 'General Splitter'. During the subsequent processing, any exception that occurs is handled in an Exception Subprocess, and e-mails detailing the exception are being sent out to the designated recipient.
Now there is an ask to group all the exception details into a single e-mail - e.g. if there were 5 exceptions out of 10 split records, 5 e-mails are being sent presently, and the ask is to group these 5 e-mails into a single e-mail. Attempting to use the DataStore 'Write' operation to write the errors into persistent storage, and then retrieve them using the 'Select' operation at the end of message processing. However I'm unable to determine the (dynamic)value to be provided in the 'Number of Polled Messages' parameter in the Select operation, so that all written messages can be selected at-once and then grouped appropriately.
Any pointers to how this can be achieved will be appreciated!