File Distribution in Publish Pro

You can use File Distribution in Publish Pro to distribute your document publications by writing them to custom directories on an external file system. This is typically a file system that your users already have secure access to and use for their team activities or other important documentation.

It is important to note that you can also distribute your publications to your users by scheduling delivery through the Bulletin Board, by Email, and through WebHook Channels. This can be done on the same schedule or across multiple schedules.

Note: Scheduled publications may be distributed to File Systems using a static or dynamic destination location.

Note: This functionality is only available with an External Bursting Plus license. It is also not available for inline email publications.

Creating a File Distribution

Before you begin

Your administrator must have used the Admin Console to set up an external File System to write your publications to. As part of that configuration, they will define the connection details for the target server and specify whether your publications will be written to a location under the publication or recipient tree. For more information, see Storage Settings.

Opening the Distribution Panel

Open the Distribution panel and select the File Distribution tab:

  • From the Schedule panel.
  • In the CMS, from the Schedule button at the top of your publication's Actions Panel.

Use the Distribution panel to define the details of your File Distribution.

Distribution

Tip: Before you set up your distribution details, be sure to select an Output Type, Selections, and other settings in the New Schedule panel.

Distribution

Limit to fully successful results only

Select the Limit to fully successful results only checkbox to prevent automatic distribution where content was not built completely successfully; that is, where a scheduled build "finished with errors" (or is a "Partial Success" in the language of the Task Manager):

  • Where this option is not selected (default), the output is built and automatically distributed according to the schedule. The broken item is simply excluded from the output.
  • Where this option is selected, the output is built with the missing broken item but it is not automatically distributed. You can still view the built output in the Schedule Manager, but it is not distributed.

File Distribution

Content Access

From the Content Access drop-down (green arrow above):

  • Select File Distribution is Off if you do not want to distribute the scheduled item to a selected File System.
  • Select Static File Distribution to build your publications and write them to the selected File System with a custom document name.
  • Select Slicer Based File Distribution to build your publications and write them to custom directories on the File System that are built dynamically based on your slicers. With this option selected you will need to configure the mechanism by which the custom directories are created, either using a mapping file or data model selection (see below).

Static File Distribution

With the Static File Distribution option selected, you need to indicate which File System to write your publication to and what to name your publication on creation:

File System Destination

Select the name of the File System that you want to write your publication or publications to. These File Systems should have been created in advance by your Administrator. For more information, see Storage Settings.

Note: You can only select external File Systems from this list.

Filename Template

Specify the file name for your publications:

  • Use a forward slash / to create folders inside the File System folder you are writing to. For example, add my-test/ to create my-test as a sub-folder of the selected File System location.
  • Add [variables] from the Dynamic Field Shortcuts. For example, adding [P] writes the publication name into a file or folder name when the publication is built. Where the variable is a multi-valued list (for example, [M]), the variable is replaced with a semi-colon separated list of the selected items.

Note: A file extension is added to your published file automatically based on your selected file type (Job Details > Output). The generated file is also suffixed with a creation date.

Slicer-Based File Distribution

With the Slicer Based File Distribution option selected, you need to configure a mapping that describes which directories should be created on the file system based on the slicer values. Your publications will then be written to those newly created directories. There are two options:

File Mapping Source

Where the File option is selected from the Mapping source drop-down (purple arrow below), you need to upload a file that maps slices (either by their Unique Name or Caption) to those directory names you want to create on the target File System:

The fields that are specific to this type of distribution setup are shown above (green highlight):

  • Distribution Slicer: Select the Slicer from your publication that your mapping is based on. You must have selected at least one value from a slice in the Selections panel for this drop-down to be available.
  • Mapping source: Select File.
  • Map by: Indicates whether the first column in the file should contain the slicer names as Captions or as Unique Names. You cannot create a file with a mix of Unique Names and Captions.
  • Distribution List: (Orange arrow.) Navigate to and select a .txt, .csv, or .tsv file that maps the slicer members in its first column to the custom directories in its second column.

Important: The target directory on the File System always has the following structure where file mapping is used: <Tenant>/<Publication>/<Schedule>/DATETIME/<Slicer>

Data Model Mapping Source

Where the Data Model option is selected from the Mapping source drop-down (purple arrow below), you need to select the Distribution Slicer and Role Column that identify the recipient for your publication. This creates directories on the File System that your recipient accesses to see their publications:

The fields that are specific to this type of distribution setup are shown above (green highlight):

  • Distribution Slicer: Select the Slicer from your publication that your mapping is based on. You must have selected at least one value from a slice in the Selections panel for this drop-down to be available.
  • Mapping source: Select Data Model.
  • Role Column: Select a slicer to identify the Recipient that the publications are for. For example, if your Distribution Slicer is Country, you can set your Role Column to Manufacturer to indicate that the Recipients are Manufacturers within a particular Country. This creates a <Recipient> directory on the File System and writes publications for the Recipients to it. Without any further configuration, the folder name will be a semicolon-separated list of Manufacturers in the selected country. In a publication tree, this would create folders like: Germany/ACME;Asics;OldBalance/.
  • PQL Filter Logic: (Orange arrow.) If the slicer in the publication is from an SQL data source, you can click this button to open the PQL Editor and create a PQL expression using Semantic or Common functions to customize the folder structure. For example, changing a long list of Manufacturer Names into a single name.

Note: Where this functionality is in use, the final structure of the directories that target File System files is affected by the Administrator's selection of the Recipient or Publication Tree. For details, see Storage Settings.