Skip to main content
1-Visitor
Sep 20, 2012 4:02 PM UTC
Question

Attach a file in an email trigger

Does anyone know if its possible to take a file from an attachment field and attach it in an email through a trigger?

    5 replies

    16-Pearl
    Sep 21, 2012 8:01 AM UTC

    Hi David,

    in the JS triggerscript I'd try to fetch the ScriptAttachmentBean via the ScriptIssueBean (or ScriptIssueDeltaBean depending on your trigger context).

    The ScriptAttachmentBean offers a getContent() method, that seems to represent the actual attachment file.

    The rest depends on your email setup.

    HTH Matthias

    Translate
    16-Pearl
    Oct 3, 2012 7:17 PM UTC

    Hi David,

    Did Matthias suggestion help?

    This feature is not something built into the core product, and would definitely require the use of Trigger API calls to achieve. I do know that some customers have implemented this behavior.

    Services could certainly do this sort of functionality for you.

    Regards,

    Kael

    Translate