Skip to main content

FieldLogs

Importing a Template

In the  Templates  section, you can import or export Templates

The Import function enables you to transfer a whole Template and all its components from one Enterprise/account to another.

To import a Template:

  1. On the main menu, go to Templates > Your Templates.

    Importing a Template_2 png
  2. In the Templates section, click the dropdown icon Importing a Template_1.png next to New to open the list of options.

    Importing_a_Template__3.png
  3. Select Import.

    SelectImport.png

    A dialog box appears.

  4. Click Browse.

    Importing a Template_5.png
  5. Select the zipped file or the Excel document that contains the Template from your device.

  6. Click Import.

    Importing a Template_6.png

    The Template is added to the list of Templates in the Recents section.

    Importing a Template_7.png

Warning

The blue dot indicates that it is a Private Template. You need to publish this Template.

PrivateTemplate.png

Note

If the imported Template includes a Component, then the Component Template is also imported.

The Component Template must be published independently.

You can also import a Template using a JSON file.

To import a Template from a JSON file:

  1. On the main menu, go to Templates > Your Templates.

    Importing a Template_2 png
  2. In the Templates section, expand the dropdown icon Importing a Template_1.png next to New to open the list of options.

    Importing_a_Template__3.png
  3. Select Import from Json file.

    SelectImportJSON.png

    A dialog box appears.

    DialoBoxJSON.png
  4. Click Browse.

    ImportJSON.png
  5. Select the .zip file or the JSON file that contains the Template.

  6. Click Import.

    ClickImport.png

    The Template is added to the list of the Templates in the Recents section.

    ImportedTemplateJSON.png

    The blue dot indicates that it is a Private Template.

    PrivateTemplate.png

    This Template can then be published to the Enterprise.

    PublishedTemplate.png

    Note

    If the imported Template includes a Component, then the Component Template is also imported.

    The Component Template must be published independently.

A Template can be imported and published using a JSON file.

To import and publish a Template from JSON:

  1. On the main menu, go to Templates > Your Templates.

    Importing a Template_2 png
  2. In the Templates section, expand the dropdown icon Importing a Template_1.png next to New to open the list of options.

    Importing_a_Template__3.png
  3. Select Import and Publish from Json file.

    Import_Publish.png

    A dialog box appears.

    Import_PublishDialog.png
  4. Click Browse.

    Imp_PubBrowse.png
  5. Select the .zip file or the JSON file that contains the Template.

  6. Select the required Lifecycle.

    SelectLifecycle.png
  7. Click Import.

    Imp_PubImport.png

    The Template is published and added to the list of Templates in the Current search section.

    PublishedTemplateAdded.png

    The TickIcon.png tick icon indicates that it is a Published Template.

    PublishedTickIcon.png

    A new version of an existing Template can also be published to the target environment using the JSON file.

    The following attributes are added under the publicationBehavior as shown below:

    AttributesAdded.png
    • Type: Version.

    • VersionIncrement: The versionIncrement attribute has three levels: xIncrement, yIncrement, and zIncrement. The values given to these attributes, increments the three levels of the version numbers by the values.

      For example, if the existing version number is 1.0.0 and the xIncrement: 1, yIncrement: 0, and zIncrement: 0, the version number of the imported Template will be 2.0.0.

    • Comment: You can add an optional comment. The default value is Version added via import.

    Note

    The Name, Suite and Package mentioned in the JSON file should match the values in the target environment.

    If the target environment has no Template with same Name, Suite and Package, then the imported Template will be published as a new Template.

The current version details of the Template can be viewed in the Version History tab of the Property Pane.

IncrementedVersion.png