multi documents and one email notificiation

How would I put several documents in the same workflow I can get one to work fine, but if I have 10 docs I don't want to have to send 10 e-mail notifications. Anyone know how to put more than on doc routing in an e-mail

thanks in advance

bill riggs



Answer this question

multi documents and one email notificiation

  • karthik G

    Not easily. I did something similar, but I didn't put multiple documents in one workflow - that looked too hard. Instead, I used multiple workflows (1 per document) and sent a single email.

    You'll have to build some sort of persistence mechanism to store 'messages' (an email contains many 'messages') that are waiting to be sent in an email. If you're not sending them at once (one at a time), they will need to wait.

    Then, you'll need to write a workflow activity to write to that persistence mechanism.

    And then, you'll need to write a windows service (or SPJobDefinition, if you're brave) that reads that persistence mechanism, creates your digest email and sends it.

    I did this, but was a little lazy. I wrote code activities that would record who a message was to and what the message was in an XML file. Then, I wrote a windows service that periodically reads that xml file, compiles emails from the messages in the file (based on email address), and sends the email.

    Hope that helps.


  • DreamingBear

    Moving to Workflow forum.

  • multi documents and one email notificiation