The Metadata Editor opens the import files of a site archive as a tree of what the file defines: metadata, services, jobs, site preferences, custom objects, content slots and content libraries. A toolbar sits over the tree, and a Properties or XML panel under it shows the selected row. Every change is an edit of the XML, written where the schema expects it, and one Undo step
Files it opens
| File | Root element | Tab | The tree shows |
|---|---|---|---|
| Metadata | metadata | Metadata Editor | Object types, their attribute groups and attributes, see Metadata |
| Services | services | Services Editor | Services, profiles and credentials |
| Jobs | jobs | Jobs Editor | Jobs with their flows, splits and steps |
| Site preferences | preferences | Preferences Editor | Preferences by group, a column per instance type |
| Custom objects | custom-objects | Custom Objects Editor | One row per object, a column per attribute of its type |
| Content slots | slot-configurations | Slots Editor | Slots, their contexts and configurations, see Slots Editor |
| Content library | library | Library Editor | Folders, content assets, Page Designer pages, regions and components, see Library Editor |
Open a file
A file opens from its root element and namespace, whatever its name or folder: any .xml file whose root is <metadata xmlns="http://www.demandware.com/xml/impex/metadata/2006-10-31"> is metadata. Two tabs sit under the editor, as for pipelines: the file's tab first, such as Metadata Editor or Services Editor, and Text beside it. Both show the same document, so Undo covers both. The Text tab opens with the caret on the selected row's XML, and back on the first tab the row under the caret is selected
Open the files from B2C Metadata, or create one: right-click a folder such as sites/site_template/meta and choose New › Metadata File or New › Site Archive File. A metadata file is System object extensions (system-objecttype-extensions.xml) or Custom object types (custom-objecttype-definitions.xml). A new metadata file shows No object types yet with the links Extend a system object and Add a custom object type
What every file has
The toolbar is one row, left to right:
| Control | What it does |
|---|---|
| Add | The file's adds, such as Attribute… in metadata or Service…, Profile… and Credential… in services. The first takes Cmd+N / Alt+Insert |
| Delete | Deletes the selected rows |
| Search | Filters the tree, such as Search the IDs and URLs for services. Cmd+F / Ctrl+F focuses it |
| Scopes | All first, then the file's own, such as Services, Profiles, Credentials |
| Quick pills | Up to two filters with their counts, such as Not linked and Broken links |
| Filters | Every filter, with how many rows each shows |
| Reset | Takes off the filters and the search, keeping the scope |
| Count | 3 services, or 2 of 3 while you filter |
| Problems | The problems in the file. A click opens the XML and its problems |
| Expand All, Collapse All | The tree's branches, for files with a tree |
As the editor narrows, the count goes first, then Reset, then the quick pills, then the search shrinks, then the tree buttons and the scopes. What folds moves into the Filters popup
Columns and groups
The tree is a table of up to 12 columns. Right-click the header to show or hide a column, Reset Columns, or change the grouping, such as Group by Prefix in services. Columns fold on a narrow editor. A row with a problem has a wave under its name, a red cell names something the file doesn't hold, and a blue cell links to it
Properties and XML
The panel under the tree has Properties and XML, which split side by side and fold down to their tabs, see Split view. Show in XML in the form selects the row in the XML. Properties lays the form out in columns of sections. A long text, such as an HTML body or a JSON value, opens in an editor Beside the Form, Below the Form or In the Form
With no row selected, the panel shows the file: its counts and adds, its Archive, what it Applies to (a site or the organization), Show in B2C Metadata and New Uninstall File
Read only and empty
A banner tells you when the file is read only:
| Banner | Why |
|---|---|
| The XML has errors: the design view shows the last good version, read only. Fix them in the XML | The XML doesn't parse |
| The metadata editor needs an Intellij SFCC license: the file is shown read-only, or the same with the file's tab, such as The Services editor | No license, see License |
| … may already be applied: an import set adds a new migration instead of editing one | The file is in a migration folder such as 20260101T120000. Edit Anyway unlocks it |
While read only, the adds, Delete and the fixes are off. When the search or a filter leaves no rows, the tree reads Nothing matches "…" with Clear "…", Show all, not only … and Clear the filter
Actions and shortcuts
Right-click a row for Add, the file's own actions, then Delete, Copy as XML, Paste, Copy ID, then Show in XML, Compare With… and Find Usages in Code
| Action | Shortcut | What it does |
|---|---|---|
| Show in XML | The Edit Source shortcut | Selects the row in the XML |
| Copy ID | The IDs of the selected rows, one a line | |
| Copy as XML | Cmd+C / Ctrl+C | The rows' XML, secrets left out |
| Paste | Cmd+V / Ctrl+V | XML rows, or rows from a spreadsheet |
| Compare With… | A diff with the same row in another file | |
| Find Usages in Code | Alt+F7 | Scripts and templates that name the row |
| Duplicate… | Cmd+D / Ctrl+D | A copy under a new ID |
| Rename… | Shift+F6, F2 | Renames the row, the links to it follow |
| Move Up, Move Down | The IDE's move line keys | Steps, flows, components and group members keep their order |
| Go to | Cmd+B / Ctrl+B | The template, step type or content the row names |
Enter opens a row or a branch. Double-click a cell to edit it, or a row to open Properties
Problems and fixes
Each file is checked against its schema and its kind's rules. The schema checks read like x does not take y, x goes before y in z, x needs y and is "v", not one of …. The problems count opens the XML tab with the list beside it, each problem with its line and its fix. Alt+Enter runs the fix in the list or in the XML
In services, Profile "acme2" is not in this file offers Create Missing Profile, which writes the profile with the platform defaults
Mark for Deletion on a service, job, custom object, slot configuration or library row keeps only its ID with mode="delete", so the import deletes it
Copy, paste and other files
- Paste writes the rows at their place in the schema, and asks Paste as Copies or Replace when the IDs already exist
- Paste also reads rows copied from a spreadsheet, by their headers or by the columns shown
- New Uninstall File writes the file's copy for the uninstall archive: an
installfolder in the path becomesuninstall, otherwise it writes an_uninstallsibling - Other Files in the form lists the same ID in the project's other files, with Open and Compare. Compare leaves the secrets of both sides out
- The Structure view and the File Structure popup show the editor's rows
What the editor writes
- Each change is one command named for it, such as Add Attribute fabric, so Undo reverts it
- Elements go where the schema puts them, and text is escaped
- Turning a metadata flag off writes
false. An import leaves a setting the file doesn't name as it is on the instance - A new attribute gets what a Business Manager export writes, such as
mandatory-flag falseandmin-length 0 - Renaming an attribute renames it in the file's groups too. Code keeps reading the old ID
- Deleting an attribute or a type doesn't delete it on an instance. Delete it in Business Manager too
Metadata
A metadata file, such as system-objecttype-extensions.xml, shows the object types it extends or defines, their attribute groups and their attributes, checked against the bundled metadata.xsd
The toolbar
| Control | What it does |
|---|---|
| Add | Adds an Attribute… (Cmd+N / Ctrl+N), an Attribute Group…, a System Object Extension… or a Custom Object Type… |
| Delete | Deletes the selected rows. On rows that a group only lists, it reads Remove from Group |
| Search IDs and names | Filters the tree by ID or display name. Cmd+F / Ctrl+F focuses it, Escape clears it, Down goes to the rows |
| All, Custom, System | The kind of attribute, each with its count |
| No usages | Custom attributes nothing in the project reads |
| Not in a group | Custom attributes in none of their type's groups: Business Manager's forms leave them out |
| Filters | Every filter, with how many attributes each shows. The badge counts the filters that are on |
| Reset | Takes off the filters, keeping the search and the kind |
| Count | 9 attributes, or 1 of 9 while a filter is on |
Find attributes
The search keeps the path to each match, so colo shows Product › Looks › color. The Filters popup holds every filter in a grid, each with the number of attributes it shows
| Section | Filters |
|---|---|
| Kind | All, Custom, System |
| Status | With problems, No usages, Not in a group, No display name, No description |
| Object types | The types of the file, such as Product or a custom object type |
| Attribute types | The types by family: Text, Numbers, Choices, Dates, Media, Lists |
| Flags | Localizable, Mandatory and the other flags, each Any, Yes or No |
Find a filter narrows the popup and Reset all clears it. When nothing matches, the tree says what it looked for and offers Clear the filter
The tree
| Column | Shows |
|---|---|
| Name | The type, group or attribute ID. A second block extending the same type reads Product (2). An attribute nothing reads is grey, and a problem draws a waved line under it |
| Display name | The x-default display name |
| Type | The attribute type and the flags that are on, such as Text localizable. A type row reads System object or Custom object type |
| Usages | How many places in the project read the attribute, a click lists them. A type row counts its unused attributes |
Under each type come its groups in file order, then Not in a group. Attributes a group lists but the file doesn't define, such as the system attribute name, are grey. The columns drop as the editor narrows: Display name first, then Type
Edit in the tree
- Double-click a display name or a type to edit it in place.
F2renames the ID. Changing the type of an attribute asks first, because an import fails on an instance that already has it - Drag attributes onto a group to add them, between members to reorder, or onto Not in a group to take them out. The tooltip says what the drop does: Add to Looks, Move to Shipping, Move here
- Right-click for Add Attribute…, Rename, Duplicate…, Groups, Remove from Group, Delete, Move Up, Move Down, Show in XML, Show Usages, Copy ID and Copy Script Access. A row the file has twice adds Go to Second Definition
Copy Script Access copies how code reads the attribute: product.custom.color for a product, Site.getCurrent().getCustomPreferenceValue('id') for a site preference, System.getPreferences().getCustom().id for an organization preference
Usages
The Usages column counts the places in the project that read each custom attribute, in scripts, ISML and controllers. Click the count, or press Cmd+Alt+F7 / Ctrl+Alt+F7 on the row, to list them with the line that reads it, such as product.custom.color. Show Usages is grey on an attribute nothing reads
Delete asks first and says what reads the attribute: Delete packSize from Product? Nothing in the project reads it. An import removes no attribute from an instance, so delete it in Business Manager too
Add an attribute
Add › Attribute… opens New Attribute. Pick the object type and the group, or New group…, then type the ID: the name follows it in words, so careInstructions gives Care instructions
The gallery on the left lists the 16 attribute types by family with a sample value. Search types, such as list or date finds them by name, family, sample or script type. The right side shows the type's settings and a live preview: the Business Manager field, notes such as A value per locale, and the lines a script reads it with. An enum offers Add example values. Add Attribute writes the whole definition as one step
| Type | Sample | Scripts read |
|---|---|---|
| String | Midnight Blue | String |
| Text | Hand wash cold. Dry flat | String |
| HTML | <p>Runs <b>small</b></p> | dw.content.MarkupText |
| [email protected] | String | |
| Password | •••••••• | String, stored encrypted |
| Integer | 12 | Number |
| Number | 19.99 | Number |
| Boolean | Yes | Boolean |
| Enum of Strings | Cotton | dw.value.EnumValue |
| Enum of Integers | 24 months | dw.value.EnumValue |
| Date | 2026-10-18 | Date |
| Date + Time | 2026-10-18 09:30 | Date |
| Image | images/badges/new.png | dw.content.MediaFile |
| Set of Strings | summer, linen | String[] |
| Set of Integers | 38, 40, 42 | Number[] |
| Set of Numbers | 1.5, 2.25 | Number[] |
The other Add items ask for less: New Attribute Group (ID and display name), Extend System Object Type (a system type such as Profile) and New Custom Object Type (ID, display name, key attribute and type, data scope, replication, retention in days)
Properties
Click a row and the panel under the tree shows its properties, growing if it is folded or small. Its header has the usage count and Show in XML. The sections flow into columns when there is room
| Section | Settings |
|---|---|
| General | ID, Name, Description, Type and the groups as chips with Add to Group |
| Flags | Localizable, Site-specific, Mandatory, Visible, Externally managed, Order required, Externally defined |
| Values | For an enum: Value, Name and Default, then Select multiple and Immutable |
| Value | The default, then the settings Business Manager offers for the type, such as Min length, Field length, Regular expression or Unit |
A field writes its value on Enter or when you leave it, and Escape restores the file's value. A custom object type shows its storage settings, and several selected attributes share their flags and groups, with New Group… to add a group with them
Groups, types and keys
A group shows its members as a table of Attribute, Name, Type and Usages, in the order Business Manager lists them. Its Add offers New Attribute…, Existing Attributes… and System Attribute…, its arrows move the selected member, and its sort orders the group Sort by ID or Sort by Name
A custom object type shows its Storage: Data scope (Site or Organization), Replication and Retention in days, empty keeps the objects. Its key, such as configId, String, links to the key attribute, whose form has the ID and type
Translations
The language button beside Name, Description and Unit opens the translations, such as Name Translations. Add lists the project's locales with the sites that use them, and Other Locale… takes any locale such as de or fr-FR. A badge on the button marks a field that has translations
XML and problems
The panel's XML tab is the IDE's editor on the same file. Selecting a row marks its whole element in the XML, and clicking in the XML selects the row there. The problems count in the toolbar opens it with the Problems list, beside the XML when there is room and under it when not
| Problem | Example |
|---|---|
| A repeated definition | Product defines careInstructions more than once, with First definition and Second definition |
| A repeated group or listing | The group Looks lists color more than once |
| A wrong default | The default value of isGiftWrappable is no boolean |
| Schema and syntax errors | Checked against the bundled metadata.xsd |
Previous Problem and Next Problem move through them and the places of a duplicate. Go to XML shows the selected problem in the XML, and Delete This Definition (or Group, Listing) deletes the selected place of a duplicate, the others stay
Each place of a duplicate has an arrow in the XML gutter. Its tooltip reads Product defines careInstructions more than once: go to the second definition, line 76, and a click goes there. Metadata problems are fixed in the XML: they have no Alt+Enter fix
Split view
The split button in the panel's header shows the properties and the XML together: side by side when the panel is 640 px wide or more, the properties over the XML when it is narrower. Selecting a row fills the form and marks its element in the XML, and clicking in the XML selects that row. The button again, or a tab, shows one at a time
Clicking the shown tab, or the chevron, folds the panel down to its tabs, and the chevron opens it again under the tree. The editor remembers the layout
Narrow editors
The editor fits beside tool windows such as B2C Metadata. The search narrows first, then the toolbar folds the count, Reset, Not in a group, No usages, the tree buttons and the kind into Filters, whose badge still counts them. The columns drop, and the properties and the XML stack under each other
Services
The scopes are Services, Profiles and Credentials, and the quick pills Not linked (profiles and credentials no service of the file uses) and Broken links (services whose profile or credential isn't in the file). The columns are Type, Profile, Credential and Enabled
The form of a service has three sections:
- Service: Type, Log prefix, and the Enabled, Mock mode, Communication log and Force production log flags
- Profile: the profile with Go to and Copy to New Profile, its timeout, rate limit and circuit breaker with Ignore 5xx responses. A shared profile reads Shared by 2 services; changes apply to all of them
- Credential: URL, User and Password. An encrypted password reads Encrypted by common.export with only Replace…, and a plain text one also has Reveal and Copy
Add › Service… asks for the ID (Such as int_payments.http.authorize: the cartridge, the protocol, the API), the type, the profile and the credential. Right-click a service for Copy createService Call, Select Services Using This, Create Missing Profile or Create Missing Credential. Group by Prefix puts services, profiles and credentials under the first segment of their ID when two share it
The checks include FTP services are deprecated: use SFTP, The password is in plain text in the file, Production logging is on: the service's filterLogMessage must hide secrets and unknown service types
Profiles and credentials
A service whose profile isn't in the file offers Create Missing Profile in its form. A profile or credential lists its services under Used by, and right-click › Select Services Using This selects them in the tree
Jobs
The scopes are Organization and Sites, and the quick pills Scheduled and Custom steps. Each job holds its flows, splits and steps, each step with its type. The Schedule column reads Every 1h from 02:00, Mon, Fri, Manual, or No trigger in red: the import rejects a job without triggers
Add › Job… writes a job with one flow and its first step. Step…, Flow… and Job Parameter… add to the selected job, after the selected row, and Split… adds a split that runs a flow template on every storefront site
The step form lists the step type's parameters, required ones with *. Add N Missing Parameters fills in what the type requires, Remove Undeclared Parameters drops what it doesn't declare, Go to Step Type opens its steptypes.json and Go to Module the script an ExecuteScriptModule step runs. Bind to Job Parameter… links a step parameter to a job parameter, Unbind undoes it. The job form holds the description, Runs in, the parameters, the Schedule, Notifications and the steps. Runs is Manual, Once or Recurring: once has a date and time, recurring an interval, dates, a time and weekdays, and On exit says what a failed run does. Notifications has Runs long after, Mail on retry and Mail on exit
The checks include missing triggers (fix Add Triggers), ExecuteScriptModule and ExecutePipeline (declare a custom step type in steptypes.json instead), a missing required parameter, an unknown step type and a step scope that doesn't fit the job
Steps and triggers
Add › Step… opens Add Step, the step types with their purpose, custom ones first. Type to narrow the list and press Enter to add the step after the selected one. Pick Once in Runs to give a manual job a trigger, then tick Enabled
Site preferences
The scopes are Custom and Standard, grouped by attribute group, and the quick pill Differs shows preferences whose instance types don't agree. The columns are All instances, Development, Staging and Production. = means the same as Development, and a tier without its own value shows the All instances value in grey
The Values section has a field per instance type, with Copy Development to Staging and Production, Move to All Instances, Clear in X and Compare Tiers…, a three-way diff you can edit. Go to Definition opens the attribute in the metadata, and Create Definition… opens the New Attribute dialog of Metadata for a preference no metadata defines. Copy Script copies dw.system.Site.getCurrent().getCustomPreferenceValue('apiTimeout')
Add › Preference Value… adds a value of a SitePreferences attribute, Standard Preference… a platform preference by its ID. An enum value written as its display name gets Replace Display Names with Values. Turn off Group by Attribute Group for one list by ID
Standard and definitions
The Standard scope lists platform preferences, such as SiteCurrency, with no Type column. A preference no metadata defines reads Not in metadata in red, and the import skips its value. Create Definition… opens New Attribute with the preference's ID, a name and the type its value suggests
Custom objects
There is a scope per custom object type in the file, and the quick pills Empty mandatory and Not in type. With a type picked, each attribute of the type is a column you can edit in place. An attribute the type doesn't define reads (not in type)
The form shows the type, site or organization scoped, the key with its checks, Go to Type Definition and Copy Script, which copies dw.object.CustomObjectMgr.getCustomObject('PaymentCountry', 'AT'). Attributes follow by group, secrets under Credentials. Select several objects to edit their shared values, Mixed where they differ
Add › Object of Type… adds an object of one of the project's custom types with its mandatory attributes, and Add Attribute… sets an attribute the object has no value of yet
Paste rows from a spreadsheet with Cmd+V / Ctrl+V: the headers name the attributes, and one names the key. The pasted rows are selected
Objects and attributes
Add › PaymentCountry Object… asks for the key of an object of the picked type. A value of an attribute the type doesn't define shows under Not in the type definition, with Define legacyCode… to add it to the type and Remove legacyCode to drop it
Content slots
The scopes are Global, Category and Folder, and the quick pills Disabled and Problems. A slot holds its configurations, and its contexts when it has several. Tick On and Default right in the tree, pick the template from its cell, and set the content, callout and targeting in the form. The Slots Editor page covers the content kinds, the date picker, adding configurations, campaign assignments and every check
Content libraries
The scopes are Assets (folders and classic content assets), Pages (Page Designer pages with their regions and components) and Folders, and the quick pills Offline and Problems. A region reads region, 2 of 4, red over its limit. A component shows its type, in red when no cartridge defines it: Create Page Designer Type writes its .json, .js and .isml. The Library Editor page covers the HTML body, locales, Compare Locales…, online per site, component data and every check
Code column
With a license, services, site preferences, custom objects, slots and libraries have a Code column, Places in scripts and templates, and the statuses Used in code and Unused in code. In slots and libraries Unused in code becomes the first quick pill. The form's Code section lists the places with links to each file and line, and Show All in Find. Find Usages in Code (Alt+F7) lists them in the Find tool window. It is a text search: comments count, and an ID built at run time isn't found
Usages and links in the XML
On the Text tab, each ID that code names shows its usages at the end of its line, such as 3 usages. Click the count to list the scripts, templates and site data that name the ID, with files outside your cartridges by their path in the project, such as sites/AcmeUS/services.xml
| IDs with usages | Counted in |
|---|---|
| Services, credentials, site preferences, payment methods and processors | Every place code quotes the ID or passes a constant that holds it, such as constants.REFUND_SERVICE from a module the script requires, and the site data that names it. A payment processor also counts the app.payment.processor.<id> hook |
| Content assets, folders, slot configurations, custom objects and their types, customer groups, campaigns, promotions, sorting rules, catalogs, categories, price books, inventory lists, coupons and stores | The Script API calls that take the ID, and the site data that names it |
Cmd+Click / Ctrl+Click on an ID that names another element opens it, and completion lists the IDs of the project:
- A service's profile and credential, and a job's site
- A slot configuration's content asset, category, product, customer group and campaign
- A campaign's customer groups, coupons and store groups, and promotion assignments
- Catalog parents, category assignments and product links, sorting rules, and a store's inventory list and price book
- Library parents, folder and content links, page meta tag rules and A/B test segments
- Payment processors, and a system attribute an attribute group lists, which also goes to its Script API property
The same file comes first, then its folder, then the project. A place in XML opens on the Text tab when you clicked from there. The usages show in Settings › Editor › Inlay Hints › Code vision as SFCC Site Archives. The usages and the links need a license
Content links
Content links link to the project: $url('Page-Show','cid','shipping-info')$, $httpUrl()$, $httpsUrl()$, $include()$ and images/hero.jpg?$staticlink$. They work in library and slot HTML, in other site archive XML such as preference values, in the design tab's text areas, and in attribute values of ISML templates and HTML files, such as href="$url('Search-Show','cgid','mens')$"
$ lists the link functions with their documentation, and the call lists the routes of your cartridges, then the keys the route reads and the content assets of your site archives. The route and the ID that resolve get the thin underline of a reference- Completion lists routes with their cartridges, the keys of the route (
cid,fdid,cgid,pid, and for searchq,pmin,pmax,srule,prefn1,prefv1,start,sz), and the IDs with where they come from. In HTML and site archive XML it opens as you type$,(or a quote Cmd+Click/Ctrl+Clickopens the route, the content asset, the folder, the category, the product or the static file, and quick documentation (F1/Ctrl+Q) explains a link function or key- Links count as uses of their route in the route lens, also in site archive XML outside your cartridges
- The IDE's HTML checks for unknown targets, image sizes and plain
httpURLs stay quiet on a link
The Content link problems inspection flags:
| Problem | Fix |
|---|---|
Quote is not closed | Close the quote |
$url()$ is not closed with ')$' | Close with ')$' |
$url()$ has no route | None |
Cannot resolve route 'Page-Shw', Cannot resolve content asset 'bf-term' | Change to '…' with the closest ID |
Link arguments are written in quotes | Quote the argument |
Commas are not supported in link arguments | None |
Parameter 'cid' has no value | None |
Links need a license, their colours don't. Settings › Editor › Color Scheme › ISML has Content links › $url( )$, ?$staticlink$ and Parameter key
License
The Metadata Editor needs a license, see Purchase & License. The startup grace period doesn't count. Without one the editor shows the file read only, and the Text tab still edits the XML. Usage counts, the Code column, Code links, Unused in code and the Structure view need a license too
Troubleshooting
| Problem | Fix |
|---|---|
| No editor tab, such as Metadata Editor | Check the root element and namespace of the file |
| The editor is read only | Read its banner: fix the XML, add a license, or Edit Anyway in a migration folder |
| The XML has no metadata root | Use Fix it in the XML, then check the root element |
Usages or Code counts show … | They are counted after indexing finishes, and with a license |
| An attribute is grey but is used | A read the plugin can't type, such as custom[name] with a variable, isn't counted. Type the value with JSDoc |
| A Page Designer component is red | No cartridge defines its type: Create Page Designer Type writes one |
Related
Library Editor
Content assets, folders and Page Designer pages
Slots Editor
Slot configurations, content, schedules and campaigns
B2C Metadata
Every site archive file of the project by organization and site
Custom Attributes
Attributes typed in code from your metadata
XML & JSON Validation
Completion and checks in import XML
Search Everywhere
The Site Archive tab finds what the files define