This page describe the parameters to use to start an export execution.

Main object

FieldData TypeDescription
DBConnectionstringSource Connection name
ExportingEntitiesArray[ExportingEntity]entities list to export
OnlyExportStructurebooleanexport only the structure without any record
ExportPlainbooleanif it is a export to a zip file, export with a format to open with Excel
ExportToDatabasebooleantrue to export to a database; otherwise, to a zip file
DestinationDBConnectionstringDestination Connection name (If it is a export to a database)
ChunkSizeintegermaximum size in kb in a chunk. If set to 0, it will be used the default value (100.000 to direct database connections and 12500 to the REST)
ChunkRecordsintegermaximum number of records in a chunk. If set to 0, it will be used the default value (20000)
KeepChunkSizebooleanuse always the same number of records per chunk
SmartOSSYSDataExportbooleanonly export the referenced ossys_* records in the entities foreign keys
CreateFKConstraintsbooleanif the export is to a database, set to true to create the foreign key constraints
UseQueryByRowsbooleanUse Query By Rows to get Chunks
SampleSizeKBintegerSize of chunk sample for table size calculation
SampleSizeKB4BinintegerSize of chunk sample for table, with binary data, size calculation
DeleteExportFilebooleanDelete the File from disk after saving in Database
ChunkRecordsJustIdsintegerRecords chunk to use in the just id instructions (default is 200000)
ExportToSFTPbooleantrue to export to a SFTP connection
DestinationSFTPConnectionstringif the export is to SFTP, this is the connection to use
ExportToFileSystemPathbooleantrue to export to a folder
DestinationFileSystemPathstringif the export is to a folder, this is the folder path
UseNewFileNamebooleantrue to specify the export file name
NewFileNamestringif is to define the output filename, this is the zip name to use. Use the placeholder {date} to include the date in the name (YYYYMMDD_hhmmss)

ExportingEntity object

FieldData TypeDescription
SrcESpaceIdintegerentity espace id from the source
SrcESpaceSSKeystringentity espace ss_key from the source
SrcESpaceNamestringentity espace name from the source
SrcEntityIdintegerentity id from the source
SrcEntitySSKeystringentity ss_key from the source
SrcEntityNamestringentity name from the source
WhereClausestringwhere filter to get the records from the source
UserMappedTablebooleanchoose a set of unique attributes to be used as the mapper of the information of this entity. The value of those attributes will be used to map the information instead of the natural primary key.
UserMappedUniqueAttributeIdListArray[integer]source attributes ids to use as mapper
UserMappedUniqueAttributeListArray[string]source attributes names to use as mapper
FieldsDecisionArray[FieldDecision]change the records source values
TableNameInConfigurationbooleanif the export is to a database, specify the destination table name; otherwise, it will create with the same name from the source
TableNameInDestinationstringif the export is to a database, define the destination table name in the destination

FieldDecision object

FieldData TypeDescription
MigrationFieldDecisionintegeractions to take in the column. 20 to ignore, 50 to scramble, 60 to anonymize or 70 to use a static value.
MigrationFieldDecisionNamestringname of the action to take (Ignore, Scramble, Anonymize or StaticValue)
AttributeIdintegerattribute id from the source
StaticValueToUsestringIf the action is to use a static value, will be replace with this value.

Sample export to database Configuration

{
	"DBConnection": "Source Connection Name",
	"ExportingEntities": [
		
		{
			"SrcESpaceId": 1,
			"SrcESpaceSSKey": "ab123dc4d-4321-1234-ab12-d123a3214a82",
			"SrcESpaceName": "Espace Name",
			"SrcEntityId": 456,
			"SrcEntitySSKey": "3212a0fb-4221-2322-basc-7f07ab123947",
			"SrcEntityName": "Entity Name",
			"WhereClause": "",
			"UserMappedTable": false,
			"UserMappedUniqueAttributeIdList": [],
			"UserMappedUniqueAttributeList": [],
			"FieldsDecision": [],
			"TableNameInConfiguration": true,
			"TableNameInDestination": "EntityA"
		}
	],
	"OnlyExportStructure": false,
	"ExportPlain": false,
	"ExportToDatabase": true,
	"DestinationDBConnection": "Destination Connection Name",
	"ChunkSize" : 0,
	"ChunkRecords" : 0, 
	"KeepChunkSize" : false,
	"SmartOSSYSDataExport" : false,
	"CreateFKConstraints" : false,
	"UseQueryByRows" : false
}

Sample export to file Configuration

{
	"DBConnection": "Source Connection Name",
	"ExportingEntities": [
		
		{
			"SrcESpaceId": 1,
			"SrcESpaceSSKey": "ab123dc4d-4321-1234-ab12-d123a3214a82",
			"SrcESpaceName": "Espace Name",
			"SrcEntityId": 456,
			"SrcEntitySSKey": "3212a0fb-4221-2322-basc-7f07ab123947",
			"SrcEntityName": "Entity Name",
			"WhereClause": "",
			"UserMappedTable": false,
			"UserMappedUniqueAttributeIdList": [],
			"UserMappedUniqueAttributeList": [],
			"FieldsDecision": [],
			"TableNameInConfiguration": false,
			"TableNameInDestination": ""
		}
	],
	"OnlyExportStructure": false,
	"ExportPlain": false,
	"ExportToDatabase": false,
	"DestinationDBConnection": "",
	"ChunkSize" : 0,
	"ChunkRecords" : 0, 
	"KeepChunkSize" : false,
	"SmartOSSYSDataExport" : false,
	"CreateFKConstraints" : false,
	"UseQueryByRows" : false
}

Sample export to SFTP Configuration

{
	"DBConnection": "Source Connection Name",
	"ExportingEntities": [
		
		{
			"SrcESpaceId": 1,
			"SrcESpaceSSKey": "ab123dc4d-4321-1234-ab12-d123a3214a82",
			"SrcESpaceName": "Espace Name",
			"SrcEntityId": 456,
			"SrcEntitySSKey": "3212a0fb-4221-2322-basc-7f07ab123947",
			"SrcEntityName": "Entity Name",
			"WhereClause": "",
			"UserMappedTable": false,
			"UserMappedUniqueAttributeIdList": [],
			"UserMappedUniqueAttributeList": [],
			"FieldsDecision": [],
			"TableNameInConfiguration": false,
			"TableNameInDestination": ""
		}
	],
	"OnlyExportStructure": false,
	"ExportPlain": false,
	"ExportToSFTP": true,
	"DestinationSFTPConnection": "SFTP Connection",
	"ChunkSize" : 0,
	"ChunkRecords" : 0, 
	"KeepChunkSize" : false,
	"SmartOSSYSDataExport" : false,
	"CreateFKConstraints" : false,
	"UseQueryByRows" : false
}

Sample export to Folder Configuration

{
	"DBConnection": "Source Connection Name",
	"ExportingEntities": [
		
		{
			"SrcESpaceId": 1,
			"SrcESpaceSSKey": "ab123dc4d-4321-1234-ab12-d123a3214a82",
			"SrcESpaceName": "Espace Name",
			"SrcEntityId": 456,
			"SrcEntitySSKey": "3212a0fb-4221-2322-basc-7f07ab123947",
			"SrcEntityName": "Entity Name",
			"WhereClause": "",
			"UserMappedTable": false,
			"UserMappedUniqueAttributeIdList": [],
			"UserMappedUniqueAttributeList": [],
			"FieldsDecision": [],
			"TableNameInConfiguration": false,
			"TableNameInDestination": ""
		}
	],
	"OnlyExportStructure": false,
	"ExportPlain": false,
	"ExportToFileSystemPath": true,
	"DestinationFileSystemPath": "C:\\Program Files\\OutputFolder",
	"ChunkSize" : 0,
	"ChunkRecords" : 0, 
	"KeepChunkSize" : false,
	"SmartOSSYSDataExport" : false,
	"CreateFKConstraints" : false,
	"UseQueryByRows" : false
}