Export Schema
You need to export a structure from a Product-Live table.
Json
Example
json
{
"name": "table-export-schema",
"taskReferenceName": "export_table_schema",
"description": "The business description of the task",
"type": "SUB_WORKFLOW",
"optional": false,
"inputParameters": {
"tableKey": "PRODUCTS",
"mode": "ALL",
"fileName": "items.xml"
}
}1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
Definition
| Property | Type | Required | Description |
|---|---|---|---|
| The name (or type) of the task | |||
| The unique name of the task in your job. It is used to reference this task in the workflow. | |||
| The functional description of this task in your job. | |||
The type of the task. It must be SUB_WORKFLOW. | |||
| : | true: the job continues if there is an error on this task. false: the job fails. | ||
| Input parameters of the task. See below |
Inputs
| Property | Type | Required | Description |
|---|---|---|---|
| Reference a table key. | |||
| : | ACTIVE = only elements that are not archived are exported. ALL = all elements are exported regardless their status. | ||
| Defines name of the output file. It must not contain the extension. | |||
| The account key of the partner. You need to indicates the account key only if it's a shared table by a partner otherwise do not use this property. You can find the partner key in Settings > Network > Partners |
Outputs
| Property | Type | Description |
|---|---|---|
| file | The table schema in the XML format described below. The output format is basically the same as the input format, to read more about the input format: Import Table |
This task provides only the file output. It does not provide a report, and skipReportGeneration and logLevel are not supported inputs. A missing ${export_table_schema.output.report} is not an export failure: use the task status and the file output to check the export.
Limits and additional notes
The limitation of the output file size is 250 Mb.
In collect strategies, the
use-if-emptyattribute is only exported when it is set tofalse. A field exported without this attribute uses the default valuetrue. Importing the exported file again keeps the same matching behavior.
FAQ
How to export the strcuture of a partner?
You must indicate the property accountKey in the input parameters. See the definition above.