# How can I add the form archive as a file attachment to a custom notification email template?

**URL:** <https://discuss.workflowgen.com/t/how-can-i-add-the-form-archive-as-a-file-attachment-to-a-custom-notification-email-template/376>\
**Category:** Process Design\
**Created:** [January 19, 2010, 9:10am UTC](https://discuss.workflowgen.com/t/how-can-i-add-the-form-archive-as-a-file-attachment-to-a-custom-notification-email-template/376 "2010-01-19T09:10:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [January 19, 2010, 9:10am UTC](https://discuss.workflowgen.com/t/how-can-i-add-the-form-archive-as-a-file-attachment-to-a-custom-notification-email-template/376/1 "2010-01-19T09:10:00Z")

</div>

**Solution**

The form archive is a file type process data. You can add it as a file attachment to a custom notification email template by using the following macro:

`<WF_PROCESS_INST_RELDATA_FILE.FORM_ARCHIVE>`

This macro will be automatically detected and replaced with a file attachment containing the form archive when sending email notifications.

---

<div class="post-metadata">

**Author:** ![schaubal](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@schaubal](https://discuss.workflowgen.com/u/schaubal)\
**Post date:** [January 27, 2017, 7:46pm UTC](https://discuss.workflowgen.com/t/how-can-i-add-the-form-archive-as-a-file-attachment-to-a-custom-notification-email-template/376/2 "2017-01-27T19:46:41Z")

</div>

The above post is missing the macro. Can you correct it.

---

<div class="post-metadata">

**Author:** ![kevin.lee](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@kevin.lee](https://discuss.workflowgen.com/u/kevin.lee)\
**Post date:** [January 27, 2017, 8:09pm UTC](https://discuss.workflowgen.com/t/how-can-i-add-the-form-archive-as-a-file-attachment-to-a-custom-notification-email-template/376/3 "2017-01-27T20:09:47Z")

</div>

You can use macro: \<WF\_PROCESS\_INST\_RELDATA\_VALUE.YOUR\_FILE\_PROCESS\_DATA\_NAME\> to attach the actual file type process data in your custom email as attachment (not a link)

Hence you can have the form archive html file as attachment if you add this tag:  
**\<WF\_PROCESS\_INST\_RELDATA\_VALUE.FORM\_ARCHIVE\>** at the bottom of your email template file.
