Create Datamart Table with Dynamic Fields Step – create-dynamic-data-mart
Type | Description |
---|---|
| Creates a Datamart with dynamic fields (unknown name of the key fields) according to the step specification. Setup of Datamart creation is stored to Advanced Configuration by this name: |
Data Requirements
In the package directory in the data folder, this step requires:
Datamart folder (keeping the structure and naming conventions as provided by Packaging Tool).
In contrast, the create-data-mart step does not need this folder because a new Datamart is created from scratch, whereas in this step fields are mapped to an existing Datamart.
There must be a Datamart system field specified in the folder structure Datamart/dsName/datamart.json in order for the step to work.
Specific Attributes
Attribute Name | Description | Example | Required |
---|---|---|---|
| Specifies a name of the Datamart. |
| true |
| Specifies a label of the Datamart. |
| true |
| Specifies a list of Data Source names which will be included in the Datamart. |
| false |
| Specifies a name of a Data Source which will be used as a Datamart source. |
| true |
| Specifies a list of Datamart fields with their specific function in the Datamart. Each object must have these attributes:
| "fieldsWithFunction": [
{
"uniqueName": "PricingDate",
"function": "PRICINGDATE"
},
{
"uniqueName": "Quantity",
"function": "PERUNITBASIS"
},
{
"uniqueName": "InvoicePrice",
"function": "PERCENTBASIS"
}
] | false |
| Excludes fields from the given Data Sources. Fields must be array assigned to a specified Data Source. | "excludedFields": {
"TXStandardData": [
"Currency"
],
"Product": [
"unitOfMeasure"
],
"Customer": [
"Service"
]
}, | |
| Specifies the base currency for the Datamart if there is no step before this one to set it. |
| |
| Tries to map the key field by | "dsFieldsMapping": [
{
"sourceFieldName": "ProductId",
"dynamicPath":
{
"dsUniqueName": "Product",
"fieldName": "sourceField",
"fieldValue": "sku"
}
}
], |
Example
PlatformManager version 1.75.0