ExportIntoTables
  • 1 Minute to read
  • Dark
    Light
  • PDF

ExportIntoTables

  • Dark
    Light
  • PDF

Article summary

Exports a single source table into multiple sub tables using a dataset collection to determine records in each sub-table

KeyValue(s)Description
method"ExportIntoTables"Exports a single source table into multiple sub tables using a dataset collection to determine records in each sub-table
table"prefix"prefix for new table names.  Can be blank.
dataSetCollection"CollectionName"Required. Data set collection containing the segments to use when exporting
appendfalsefalse
dataSet{}Required. Source table dataset
fields[]
Field list to include in each sub-table.  if omitted, all fields will be included.
{
  "method": "ExportIntoTables",
  "project": "",
  "table": "",
  "fields": [],
  "all": false,
  "exportTemplate": "",
  "template": "",
  "dataSet": {},
  "dataSetCollection": "",
  "append": false,
  "fastAppend": true,
  "optimize": true,
  "incremental": false,
  "ignoreIfNoRows": false,
  "abandonOnEmpty": false,
  "skipIfMissingSourceTable": false,
  "allowUnbalanced": false,
  "minDiscreteSize": 0,
  "adjustSymmetry": false,
  "ctod": false,
  "autoUseExtended": false
}
Additional keys
ExportIntoTables supports the same set of keys as ExportIntoTable - with the addition of dataSetCollection.


Added v5.11.4

Approach

  1. Create a dataset Collection for the table that is to be split into sub tables.  A sub-table will be created for each dataset in the collection.
  2. Optional - Create a field template 
  3. Add the ExportIntoTables method to script
  4. Drag the source table onto the ExportIntoTables method
  5. Drag the dataset collection onto the ExportIntoTables method, or specify the dataSetCollection name
  6. Specify the table prefix.    Each sub table will have the name "table" & "dataSetCollection itemname"
  7. Specify the fields to include in the export (to include all fields, use "*")





Was this article helpful?