Exporting hierarchy via XML

  • Release version: Australia
  • Updated June 16, 2026
  • 1 minute to read
  • Learn how to export a model or template and its related records as XML files for transfer to another ServiceNow instance.

    Exporting hierarchy process overview

    The XML export process operates as a two-stage interaction. In the first stage, the platform admin selects one or more models or inventory templates from a list view, or opens a single record from a form view, and selects Export Hierarchy. The system identifies every record related to or referenced by the selected models or templates. It displays them as a consolidated list of related record links.

    In the second stage, the administrator opens each related record link. The administrator exports its underlying table data as XML using the platform's standard Export action. The XML files are then transferred to the target instance. They are loaded using the platform's table import via XML feature. LoWhen you export a model or template, the export includes the selectedFor the step-by-step procedure for exporting a model or template hierarchy, see record, all ancestors, and all descendants.c.

    Sibling records at every level and their descendants are excluded.des the selected record, all of its ancestors, and all of its descendants. Sibling records at every level and their descendants are excluded.

    To learn the step-by-step procedure for exporting a model or template hierarchy, see Export hierarchy of models and templates.