CreatePackage
  • 1 Minute to read
  • Dark
    Light
  • PDF

CreatePackage

  • Dark
    Light
  • PDF

Article summary

Creates a zip package that can be used to inject shared data definitions into target projects.  If Storage Hub has been configured, will add the package to the storage hub.

KeyValue(s)Description
method"CreatePackage"Creates a zip package that can be used to inject shared data definitions into target projects.
path"Path or filename"Required.  
[Path] or [Path & Filename] to the package file.
systemtrue/falseOptional.
Default = false.  
If true, system data (such as ....>TODO.....) will be included in the package.

note: if system is true then tables, reports and includeProjectMetadata are not allowed

includeProjectMetaDatatrue/falseOptional.
Default = false.  
If true, metadata definitions will be included in the package.
targetProject"ProjectName"Required.  
The name of the project from which to create the data package .
tables[][
"table1",
"table2",
"table3",
"*"
]
Required.
The tables to include in the package.
To included all tables, use "*"
reports[]
[
"report",
"report",
"report",
"*"
]
Required.
The reports to include in the package.
To included all reports, use "*"
autoLocktrue/falseAdded in v5.8.15
Optional.
Default = true.
If true, flags targetProject as protected. (Note: is it not possible to drop protected projects. Use Projects | Manage Projects to change project protection)
sourceName"NameofSource"The name of the source from which the package was created.  This will be displayed in place of "~ EXTERNAL ~" as the "Inj Source" property of an injected table.
project"CurrentProjectName"


For a more detailed look at working with injected data, see Deep Dive - Sharing Data by Injection

{
  "method": "CreatePackage",
  "path": "%DATAPATH%shareddata/pkg_OneTouch_05_onetouch-dev01_July6_v2_withsystem_and_meta.zip",
  "system": true,
  "includeProjectMetadata": true,
  "targetProject": "OneTouch_05",
  "autoLock": true,
  "tables": [
    "DATA_ALC",
    "DATA_ACX",
    "DATA_AWI"
  ],
  "project": "OneTouch_05"
}




Was this article helpful?

What's Next