There are several tools and methods in Digital-Clay to auto-attach documents and e-mails to items. First, some concepts:
There are several advanced attachment options that can be used when generating documents from templates, or when sending mail from item lists using the Send Mail tool. In all of these cases, the dialogs include a checkbox and a button for setting Automation options. If the checkbox is checked but no advanced options are changed, the default action is to attach each document to its item only.
The Automation button opens the following dialog:
If the OK button is pressed, all of the selected auto-attach options are saved in the local Registry per table. In other words, the settings will be restored next time documents are being generated for the same table.
All of the auto-attach options are available in any of the following scenarios:
The only exception is when generating a 'General' (non-item-specific) document, in which case the document cannot be attached to an item, but it can be attached to a new item or to a folder.
A common scenario is when you want to create one document per Contact for 100 Contacts, e-mail each document to the relevant Contact, and attach it to that Contact.
Action: Check 'Attach To Item', select 'Current Item', and uncheck 'Attach to Folder'.
Advantages: Each Contact has its own e-mail history in its Attachment tab, with the exact e-mail that was sent.
Disadvantages: When sending mass e-mails, this can accumulate to many thousands of files. It also means the same generated template is being stored several times.
This scenario causes a new item to be created for each generated document, and this item can optionally be linked to the item for which the document is being generated. The document is then attached to the new item. For example, for each Contact being e-mailed, a Task can be created with an attached e-mail, and this Task is linked to the Contact.
Action: Check 'Attach To Item', select 'New Item' and set the table and linked fields, and uncheck 'Attach to Folder'.
Advantages: This is similar to the previous example except with the added advantage of being able to see Attachments as records in the Related Items tab, or using advanced item filtering in item lists, etc. In addition, non e-mail Tasks that were completed for this Contact can be listed together with the e-mail Tasks.
Disadvantages: See Example 1.
In this scenario, the template used to generate a mass e-mail is stored in a public folder and all the Contacts that were e-mailed merely contain a link to this single template document.
Action: Uncheck 'Attach To Item', check 'Attach to Folder' and select a folder, and check 'Set attachment field' and select the field. Note that a many-to-many Attachment Field can be selected in which case the current document will be appended to the existing list of Attachment links.
Alternative: Use 'Add attachment link' instead of 'Set attachment field'. A link to the single document will be added to the item attachments. This link is a dynamic link to the document in the public folder.
Note that in the case of Automation, the only case a single document is attached to multiple items is during the 'Item Timer' event (which runs the same actions on multiple items).
Advantages: Only one document is stored even for thousands of e-mails and all the Contacts still keep a record of what was sent.
Disadvantages: The template is stored, not the actual e-mail. This may not be useful if the generated document contains dynamic analysis or report data that needs to be stored as a snapshot. With typical mail-merge letters however, only the template and the static content of the letter is important.
This scenario combines examples #2 and #3 above. E.g. a new Task is created per e-mail, but this Task only contains a link to the Template that was sent.
Action: Check both 'Attach To Item' and 'Attach to Folder', select 'New Item', set all the relevant settings and check 'Attach to new item field only'.
The Send-Mail tool in item lists can be used for all of the above scenarios in the same way with the following differences:
The ClayStation plug-in for Outlook displays a button above every Outlook e-mail for attaching the e-mail to Digital-Clay:
Many default values for this dialog can be set using the ClayOutlook Tools/Options in the Mail tab.
This dialog has several advanced capabilities and functions:
This tab is for attaching the e-mail to an existing or new item (which you must create manually). This is similar to Example #1 above.
The type of item to attach to is selected using the table drop-down.
This tab is for creating a new record automatically from the e-mail data and optionally attaching the e-mail to it. This is similar to Example #2 above.
The e-mail subject is copied into the Name field and the Body is optionally copied into a Notes field. Other field values may be set using the Edit Item button.
In addition, the new record is automatically linked to the selected item in the second drop-down which is relevant for the sender/e-mail address. For example, a new Task can be created which has the e-mail subject as its name, and which is linked to the Contact who is the sender of the e-mail.
Note that the list of tables is limited since this tab actually copies e-mail data into the record and therefore it needs to know which fields to set. These fields may be set in Tools/Options. If all you want to do is create a new empty record and attach the e-mail to it, use the New button in the 'Attach to item' tab.
This section helps the user find the correct item for attachment. It does this by querying for items containing the e-mail addresses in the Outlook e-mail. For example, it can search for all Contacts with the same e-mail address as the sender, and select the first one it finds in the drop-downs above. Note the following: