Click hereClick here
This topic describes how to create a new Data File Template. Data File Templates can also be created from the New Item screen (see Create a New Item: Data File Template for more details).
To create a new Data File Template through the Data File Template screen:
-
In the Tool Ribbon, click + new Data File Template.
-
A "New Item" pop-up window is displayed. To select the folder where you want to save this new Data File Template, click the folder name in the Navigation Tree on the left side of this pop-up. The "Where?" field is updated with the selected folder name.
-
In the "Name" field, enter a name for your new Data File Template. This name must be unique within the selected folder.
-
From the "Data Source" drop-down menu, select the source table for this Data File Template.
Note: You can never modify this source table after the Data File Template is created.
-
Click save new item. The Workspace is refreshed to show a blank Data File Template details screen.
-
If you want your output file to contain a header row, place a check mark in the "Header" check box. If not, then uncheck this check box (the "Header" check box is checked by default).
-
The next step is to define the columns that make up your Data File Template. Messaging offers two methods for defining these columns:
Add One Column at a TimeAdd One Column at a Time
-
Click add new column. The "Data File Column" pop-up window is displayed.
-
The "Data Source" drop-down menu is populated with the following sections:
-
Custom Column: This section allows you to define a custom column "on-the-fly," rather than selecting an existing column. From this section, you can pick either:
-
-
Dynamic Block: Select this option if you want to use logic, or business rules, within a Dynamic Block to determine the value in this custom column. If you select this option, the system displays the "Browse Dynamic Blocks" pop-up window so you can select the desired Dynamic Block.
-
Static value: Select this option if you want to provide a static value that the system will use to populate this custom column.
-
Data Source Fields: This section contains all of the fields on the source table.
-
Table Joins: This section contains all of the system joins that have been defined for the source table. If you select one of these joins, you'll be able to pick a field from the joined table.
-
Campaign Fields: This section contains system-generated campaign fields, such as the Campaign ID.
-
Metadata Fields: This section contains all of the Metadata fields defined for this account.
-
System Fields: This section contains system-generated fields, such as the Primary Key ID (PKID).
-
By default, the "Header" field is populated with the name of the selected field. This value will appear within the header row for this column. Optionally, you can override this value and enter a different Header value. Note: If you selected either of the Custom Column options, the "Header" field is blank, and you'll need to provide a Header name.
-
The "Value" field is disabled unless you selected "Static value," in which case you'll need to enter the desired value here.
-
Optionally, enter a default value in the "Default" field. Note: the "Default" field is not displayed if you selected either of the Custom Column options.
-
Optionally, select a formatting mask from the "Formatter" drop-down menu. The formatting mask is used to control the appearance of the value in this field. For example, you can format date fields as "mm/dd/yyyy." The system includes formatting masks for dollar amounts, dates, numbers, and URLs. You can also use a formatting mask to truncate or encode the field value. Note: the "Formatter" menu is not displayed if you selected either of the Custom Column options.
-
Click save column. The system closes the "Data File Column" pop-up window. The new field is added to the end of the Data File Template.
Add Multiple ColumnsAdd Multiple Columns
-
Click add multiple column. The "Add Multiple Data File Columns" pop-up window is displayed.
-
The "Select Fields" list box is populated with all of the fields on the source table, and all of the Metadata fields defined for this system. From this list box, select one or more fields (use Shift + Click or Control + Click to select multiple fields).
-
Click add columns. The system closes the "Add Multiple Data File Columns" pop-up window. The new fields are added to the end of the Data File Template.
Note: When you use the "Add Multiple Columns" feature, the system applies certain default settings to each new field. The system will automatically use the field name as the header, the "default" value will be blank, and the system will not apply a formatting option. If you need to modify any of these settings for a specific field, click the edit button (pen icon) for that field.
-
By default, new fields are added at the end of the Data File Template. If you need to rearrange the field sequence, click on the grey section to the left of the field, and drag it to its new location. You can also reorder the fields using the "Col #" text field. Next to the desired field, type in a new column position. The system highlights this column in green to indicate that its position has been modified. Repeat this process as needed, then click Edit > Actions > Save in the Tool Ribbon to apply the changes.
-
If you need to remove a field, click the remove button ("X" icon). The field is grayed-out to indicate that it's been marked for deletion. To complete the removal, click Edit > Actions > Save in the Tool Ribbon.
-
If you need to edit the properties for a field, click the edit button (pen icon). The "Data File Column" pop-up window is displayed. Make any necessary changes, then click save column.
-
Optionally, you can assign one or more tags to your Data File Template. To assign a tag, click on the "Add tag" field in the Edit > Tags section of the Tool Ribbon. The system displays a pop-up menu of all the existing tags. You can select one of these tags, or type in a new one and press Enter. You can repeat this process to add more tags. To remove a tag, click the "X" icon next to the tag label.
-
When finished, click Save in the Tool Ribbon.
-
Optionally, to preview your Data File Template, click Edit > Preview in the Tool Ribbon. The system displays a grid showing each column that you added to the Data File Template. The Dynamic Panel on the right-hand side of the screen lists all of the fields. To test how a value appears within a field, enter a value in the field within the Dynamic Panel, then click the refresh button (double-arrow icon). The system refreshes the preview screen, and populates that field with your test value. When finished, click Edit to return to the main edit screen.
|