The following example shows how to create a file naming convention for a document view called
section).
3. In the dialog which appears, type "My naming convention" in the Formula name field and copy the following example formula in the Formula box:
In order to accomplish the same for any other database, you first need to know the following:
1. Location of the database (or choose "Any database")
2. Name of the document view within this database
3. Names of Notes document properties which you want to use for the naming convention (e.g. Title, Subject etc.)
With these three points known, you can create a naming convention for any given document views in the same way as described above for the
Sample documents view in the SWING PDF Converter database.
Examples
Here are a few typical examples of Notes formulas which can be used in your Notes mailbox:
1. The following formula can be used for emails to name PDF files by delivery date and time and subject, separated with underscore:
@Text(DeliveredDate) + "_" + @Text(Subject)
"DeliveredDate" and "Subject" are typical fields for email documents. For example, a message with subject "Re: Follow-up message" received on December 8
th 2011 will be converted to PDF with following file name:
08.12.2011 19 39 31_Re Follow-up message.pdf
2. In this example we removed time, so our file name contains only date and subject:
@Text(@Date(DeliveredDate)) + "_" + @Text(Subject)
The result: 08.12.2011_Re Follow-up message.pdf
3. In this example we decided to format date differently and we included "From" field, now we can see who sent this message without opening it:
@Text(@Year(DeliveredDate)) + "-" + @Text(@Month(DeliveredDate)) + "-" + @Text(@Day(DeliveredDate)) + "_" + @Text(Subject) + "_" + @Text(From)
The result: 2011-12-8_Re Follow-up message_info@swingsoftware.com.pdf
4. This example is slightly different, file name contains form name and date of the conversion:
@Text(Form + "-" + @Text(@Year(@Today)) + "-" + @Text(@Month(@Today)) + "-" +@Text(@Day(@Today)))
The result:
Memo-2011-12-9.pdf
5. In this example, the PDF files will be named simply according to their unique document ID:
The result: 9900B68769EDF884C12576DD005CC16E.pdf