Skip to main content
April 9, 2022
Question

Retrieve and Send document via Email

  • April 9, 2022
  • 4 replies
  • 0 views

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

    April 9, 2022

    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
    April 9, 2022

    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
    April 9, 2022

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

    April 9, 2022

    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!