Template - importAndUpdateByDBKey

Template - importAndUpdateByDBKey

Description :

This command imports a component template, and uses that template to update the destination template. For information about the update process, see the introductory chapter Import and export concepts.

At the conclusion of the operation, this command deletes the source template in the database. Note that this command does not delete the directory structure and XML files used for the import. If you want to delete the directory structure and XML files from your file system, you must do this manually.

This command creates a temporary group at the root of the component template workspace, and uses that group to store the imported template. The temporary group is deleted at the end of the update operation. By default, the name of this temporary group is /importAndUpdate. You can change the name of the temporary group to whatever path you want, using the blasadmin command:

set ConfigManagerUI DefaultImportAndUpdateFolder /path/to/some/folder

Return type : void

Command Input :

Variable Name

Variable Type




Name of the directory where the template you want to import is located.



Location of a mapping file used to resolve any conflicts that occur when importing.



Name of the source template.



Handle to the destination template.


The following example imports a component template, then uses it to update a destination template.


DBKEY_DEST=`blcli Template getDBKeyByGroupAndName /group1 oldTemplate` 

blcli Template importAndUpdateByDBKey /c/tmp/export_files/newTemplate /c/tmp/export_files/newTemplate/mapping.xml newTemplate $DBKEY_DEST 

Was this page helpful? Yes No Submitting... Thank you