Skip to main content
Known Participant
Apr 9, 2022 3:58 AM UTC
Question

Retrieve and Send document via Email

I am trying to add an existing attachment dynamically to the "Send Email" task. These attachments were previously uploaded to the application and the attachment name and document are stored in a table. I have added documents previously that were static and had a constant name.

Thank you for the comments.

    4 replies

    New Participant
    Apr 9, 2022 4:39 AM UTC

    Sending a document via email is an excellent way to share a Word document with someone without giving them your email address.   slope 2

    gopalk2865
    Participating Frequently
    Apr 9, 2022 7:06 AM UTC

    Hi, you can add a script task node before send email node and in your script task use an expression which will query your document from db.

    stefanhelzle0001
    Brainy
    Apr 9, 2022 7:09 AM UTC

    Load your documents to a process variable and reference that variable in the attachments field. Did you try this?

    Known Participant
    Apr 9, 2022 12:25 PM UTC

    For some reason, i was thinking that you can only expose documents through the interface using the document function. I wasn't sure if this could be done through the process model as well. I will give it a try and see.

    Thank you!