- 13 Sep 2023
- 3 Minutes to read
- Print
- DarkLight
Configure data load and publishing
- Updated on 13 Sep 2023
- 3 Minutes to read
- Print
- DarkLight
After you create and register a template workbook, you must set up loading of data from your base workbook into it. Then, configure how data that is updated in scenarios (which were created from your template) is published back into the base workbook.
Learn how to:
Configure data load
Follow these steps to specify the source from which data will be loaded into your template.
Perform the following steps for each worksheet in your template workbook.
- Open your template workbook, then select a worksheet.
- Select Properties.
- In the left panel, select Source Data, then select New.
- In the Source Workbook dropdown list, select your base workbook.
- In the Source Worksheet dropdown list, select a worksheet in the base workbook.
- In the Mapping section, map columns.
- Find a row with the name of the source column under Source Worksheet Column.
- In that row, under Current Worksheet Column, select a name of the target column in your template.
- Repeat Step 6a and 6b for each source column that you want to load into your template.
Example of configuration:
You do not need to configure mapping for calculated and related columns in the template.
Configure data publishing
To configure data publishing, you must establish a connection between two worksheets: a template worksheet that contains updated base data, and a worksheet in the base workbook into which you want to publish that data. Then, you will define specific columns in the template worksheet that you want to associate with particular columns in the base worksheet.
Perform the following steps for each worksheet in your template workbook.
- Map your template worksheet to a worksheet in the base workbook.
- In the Template Configuration workbook, go to the Publish Target worksheet.
- Find a row with the name of the template worksheet.
- In that row, in the Publish Target Entity column, enter the entity name of the worksheet from the base workbook.Tip
To find the entity name, open a worksheet, select Properties > General properties > locate the Source entity field.
- In the Filters column, optionally specify the filter expression in JSON format to limit which data should be published (for example,
{"filterName": "Publish","filterExpression": "Publish eq 1"}
).
- Map columns from the worksheets which you mapped in Step 1.
- In the Template Configuration workbook, go to the Fields worksheet.
- Find a row with the name of the column from your template worksheet.
- In that row, in the Publish Target column, enter the system name of the column from the base workbook.
- Repeat Steps 2a–2c for each needed column.Important
You must map all business keys.
Example
You have the Base Data base workbook and the Update Z Prices template.
You want to publish data from the FinalStartDate column in the Update Z Prices > List Prices Update worksheet into the ValidFrom column in the Base Data > List Prices worksheet.
To do this, go to the Template Configuration > Publish Target worksheet and enter the entity name of the Base Data > List Prices worksheet.
Then, go to the Template Configuration > Fields worksheet and specify the system name of your target column (ValidFrom) from the Base Data > List Prices worksheet.