Adding Attachment to Workflow form and sending the email.

Hi I am trying to add an attachment to my Workflow form and then Sending the Email through Send Email function in Domo Notifications. But while assigning the variable I am not able to assign the variable to Send Email. Please help me if any body knows how to do this. Let me know if any further details are required to understand the problem.

Answers

  • I'm having trouble understanding what you are trying to accomplish. It sounds like you want to use a form step to send a file attachment to the Send Email action. Have you considered using a link to the file instead of an attachment? Insert the URL as a variable in the body of the email.

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

  • Let me clarify my use case to help you understand better:

    I’ve built a Domo App that includes a Form connected to a Workflow. The form collects the following fields from the user:

    • Email ID
    • Email Subject
    • Email Body
    • Attachment

    In the Domo Workflow, I’ve successfully mapped the Email ID, Subject, and Body to the “Send Email” action, and it works as expected.

    However, the issue arises with the Attachment field. I’m unable to map the attachment collected from the form into the “Send Email” action within the workflow. As a result, the workflow runs without any errors, but the email is sent without the intended attachment, which makes the automation incomplete.

    I’d really appreciate guidance on:

    • How to properly map an attachment field from the form to the Send Email step
    • Or if there are any limitations or workarounds currently in place

    Thanks in advance for your help!

  • I'm not sure Send Email can send an attachment that isn't hosted or via a URL. There may be limitations on sending binary or other form attachments using a workflow.

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

  • JosephMeyers
    JosephMeyers Domo Employee

    Are you referencing the Send Email Code Engine function? That attachment field is expecting the file id from the Domo Files API. Trying to locate documentation for that.

    Screenshot 2025-05-14 at 10.34.29 AM.png
  • Hi, Thank you for your responses.
    Please refer to below snapshots to understand the function being used along with its Parameters. If there is any other way to achieve this please let me know.

    image.png image.png
  • D_Ocana
    D_Ocana Member

    @Pranav_Patil , I found in my tests that attachment must be required and stored as a number. That function calls for a list of number data type attachments. You can also try to create that list with a different function and pass it through for email function.

    image.png
  • JosephMeyers
    JosephMeyers Domo Employee

    Yes, that number is the file id in Domo that results from using the Domo Files API