The File Formula field of a Channel Rule supports a variety of variables depending on the asset type.
For data files that group multiple products together (eg, CSV, XLSX, ONIX), the following variables are supported:
Variable | Description | Example |
---|---|---|
BASENAME | The simplified name of your TitleLeaf instance | moopress |
DATESTAMP | The date in YYYYMMDD format | 20191231 |
DISTRIBUTION_ID | The TitleLeaf ID for the given distribution | 9999 |
TIMESTAMP | The date and time in YYYYMMDD-hhmm format. The time is in 24-hour format. | 20191231-0900 |
For an individual asset file that is assigned to a specific Product or Product Format (eg, a cover or spread), the following additional variables are supported:
Variable | Description | |
---|---|---|
name_by_author_and_product_name | A combination of both the author’s name and the product’s name | DrSeuss-CatInTheHat |
name_by_collection_name_and_isbn_code | A combination of both the collection/series name and the ISBN code (ie, the last 5 digits of the ISBN) | NatureBooks-66349 |
name_by_collection_name_and_product_name | A combination of both the collection/series name and the product’s name | NatureBooks-Coyotes |
name_by_isbn | The full ISBN | 9781592966349 |
name_by_isbn_and_product_name | A combination of both the full ISBN and the product’s name | 9781592966349-Coyotes |
name_by_product_id | The TitleLeaf ID for the product | 2525 |
name_by_product_name | The product’s name | Coyotes |
name_by_product_name_and_isbn_code | A combination of both the product’s name and the ISBN code (ie, the last 5 digits of the ISBN) | Coyotes-66349 |
name_by_proprietary_product_id | The proprietary ID for the product (ie, your internal ID for the product) | PA04637 |
Non-alphanumeric characters such as spaces, dashes and colons are removed from the file name.