Skip to Content

Metadata Editor

Edit B2C Commerce metadata, services, jobs, site preferences, custom objects, slots and libraries XML in VS Code on Design, with forms, filters, fixes, usages

The Metadata Editor opens the import files of a site archive on the Design editor: metadata, services, jobs, site preferences, custom objects, content slots, content libraries, sites, tax and locales. Each file shows a toolbar, a tree of what it defines, and a Properties and Problems panel for the selected row. Every change is an edit of the XML, written where the schema expects it, and one Undo step

The Metadata Editor edits site archive XML on the Design tab as a tree and a form: metadata with the places in code that use each attribute, services, jobs, preferences and custom objects. Every edit writes the XML, and the file's problems show in the view and in VS Code's Problems, each fix a Quick Fix

Files it opens

FileRoot elementThe tree shows
MetadatametadataObject types, their attribute groups and attributes, see Metadata
ServicesservicesServices, profiles and credentials
JobsjobsJobs with their flows, splits and steps
Site preferencespreferencesPreferences by group, a column per instance type
Custom objectscustom-objectsOne row per object, a column per attribute of its type
Content slotsslot-configurationsSlots, their contexts and configurations
Content librarylibraryFolders, content assets, Page Designer pages, regions and components
SitesiteThe site's settings, cartridge path and meta tag rules
TaxtaxTax classes and jurisdictions with their rates
LocaleslocalesLocales with their fallback and formats

Any other site archive file with a bundled schema opens on Design as a tree of its elements. A file opens from its root element and namespace, such as <metadata xmlns="http://www.demandware.com/xml/impex/metadata/2006-10-31">, whatever its name or folder. A file with no schema, such as access roles, stays in the XML editor

Open a file on Design

  • Open in Design in the editor title of a site archive file opens it on Design, and Open as Text in the Metadata Editor's title goes back to the XML
  • Reopen Editor With... › Design
  • A file or entry in B2C Metadata, or a result of Search Site Archive, opens on Design with its row selected

With Open on Design on, the default, a site archive file you open from the Explorer or Quick Open opens on Design in the same tab, as a preview when it was one

When the XML opens instead

The XML stays where you asked for it:

  • A place you go to: Go to Definition, a search result, a problem, Show in XML or a place picked from a usages list
  • A file you last switched to Open as Text or reopened as text. VS Code remembers it per file, and Open in Design forgets it
  • A file with unsaved changes
  • A file over 2.5 MB, which always opens as XML

The swap needs an active license or trial. Turn it off with the intellij-sfcc.impex.openOnDesign setting

What every file has

The toolbar is one row, left to right:

ControlWhat it does
AddThe file's adds, such as Attribute... in metadata or Service..., Profile... and Credential... in services. The first takes ⌘N / Ctrl+N
DeleteDeletes the selected rows
SearchFilters the tree, such as Search the IDs and URLs for services. ⌘F / Ctrl+F focuses it
ScopesAll first, then the file's own, such as Services, Profiles, Credentials, each with a count
Quick pillsUp to two filters with their counts, such as Not linked and Broken links
FiltersEvery filter, with how many rows each shows. The badge counts the filters on in there
ResetTakes off the filters and the search, keeping the scope
Count3 jobs, or 2 of 3 while you filter
ProblemsThe errors and warnings in the file. A click opens the Problems tab
Expand All, Collapse AllThe tree's branches, for files with a tree

As the editor narrows, the count goes first, then Reset, then the quick pills, then the scopes move into Filters, then the search shrinks and the tree buttons hide

Columns and the panel

The tree is a table of up to 8 columns. Right-click the header to show or hide a column, Reset Columns, or change the grouping, such as Group by Prefix in services. VS Code remembers them per kind of file. 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 link cell goes to it

The panel under the tree has Properties and Problems, side by side from the split button and stacked under 640 px, and the chevron folds it down to its tabs. Properties lays the form out in sections, and a long text, such as an HTML body or a JSON value, opens Beside the Form, Below the Form or In the Form. With no row selected, it 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

BannerWhy
The XML has errors: the design view shows the last good version, read only. Fix them in the XMLThe XML doesn't parse
The Metadata editor needs an Intellij SFCC license: the file is shown read only, with the file's kind, such as The Services editorNo license, see License
The file is read onlyThe file can't be written
… may already be applied: an import set adds a new migration instead of editing oneThe file is in a migration folder such as 20260101T120000. Edit Anyway unlocks it

While read only, the adds, Delete and the fixes are off. A file with nothing yet says so, such as No attributes yet, with links to its first adds, and a search that leaves no rows reads Nothing matches with 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, Show in XML, Compare With... and Find Usages in Code

ActionShortcutWhat it does
Show in XML⌘↓ (Mac), F4Opens the XML at the row
Copy IDThe IDs of the selected rows, one a line
Copy as XML⌘C / Ctrl+CThe rows' XML
Paste⌘V / Ctrl+VXML rows, at their place in the schema
Compare With...A diff with the same row in another file
Find Usages in CodeAlt+F7Scripts and templates that name the row
Duplicate...⌘D / Ctrl+DA copy under a new ID
Rename...F2, Shift+F6Renames the row, the links to it follow
Move Up, Move DownAlt+Up, Alt+DownSteps, flows, components and group members keep their order
Go to⌘B / Ctrl+BThe template, step type or content the row names

Enter opens a row's properties, and Shift+F10 the context menu. Double-click a cell to edit it, or a row to open it

Problems and fixes

Each file is checked against its schema and its kind's rules. The Problems tab lists them with their lines, the other places of a duplicate, and each fix as a button. Click one to select its row and show the XML

The Metadata Editor edits site archive XML on the Design tab as a tree and a form: metadata with the places in code that use each attribute, services, jobs, preferences and custom objects. Every edit writes the XML, and the file's problems show in the view and in VS Code's Problems, each fix a Quick Fix

Alt+Enter runs the selected one. The same problems show in VS Code's Problems panel from Intellij SFCC, and Quick Fix... in the XML offers their fixes while the file is open on Design

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

What the editor writes

  • Each change is one edit of the open document: Undo and Redo are VS Code's, and you save the file as any other
  • The XML is VS Code's own editor on the same document, so Undo covers both. Selecting a row highlights its element in the XML editors you have open, and moving the caret in the XML selects the row there
  • Elements go where the schema puts them, and text is escaped

Copy, paste and other files

  • Paste asks Paste as Copies or Replace when the IDs already exist, and leaves out what the file doesn't take
  • New Uninstall File writes the file's copy for the uninstall archive: an install folder in the path becomes uninstall, otherwise it writes an _uninstall sibling
  • Other Files in the form lists the same ID in the project's other files, with Open and Compare. A compare you can edit asks Apply the changes of ...? before it writes them
  • The Outline, the breadcrumbs and Go to Symbol in Editor (⇧⌘O / Ctrl+Shift+O) show the editor's rows

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

ControlWhat it does
AddAttribute... (⌘N / Ctrl+N), Attribute Group..., System Object Extension... or Custom Object Type...
Search the IDs and display namesFilters the tree. Down or Enter goes to the rows, Escape clears it
All, Custom, SystemThe kind of attribute, each with its count
Unused in code, Not in a groupCustom attributes nothing reads, and custom attributes in none of their type's groups
Count9 attributes, or 1 of 9 while you filter

Find attributes

The search keeps the path to each match, so colo shows Product › Looks › color. The Filters popup lists every filter with its count, greyed out when it shows nothing:

  • With problems, Not in a group, No display name and No description
  • Used in code and Unused in code
  • Object types: the types of the file, such as Product or a custom object type
  • Attribute types: String, Enum of Strings, Date and the other types the file uses
  • The flags, each as a pair such as Localizable and Not localizable

The tree

The Metadata Editor edits site archive XML on the Design tab as a tree and a form: metadata with the places in code that use each attribute, services, jobs, preferences and custom objects. Every edit writes the XML, and the file's problems show in the view and in VS Code's Problems, each fix a Quick Fix
ColumnShows
NameThe type, group or attribute ID. A problem draws a waved line under it
Display nameThe x-default display name. Double-click it to edit it in place
TypeThe attribute type, or System object and Custom object type for a type
UsagesHow many places in scripts and templates read the attribute. A click lists them

Under each type come its groups in file order, then Not in a group

Edit in the tree

  • Drag attributes onto a group to add them, between members to reorder, or onto Not in a group to take them out. The drop says what it does: Add to Looks, Move to Shipping, Move here
  • Right-click for Add Attribute..., Groups..., Change Type..., Remove from Group and Copy Script Access besides the shared actions. A row the file has twice adds Go to Other Definition
  • Copy Script Access copies how code reads the attribute, such as product.custom.color

Renaming an attribute renames it in the file's groups too, and code keeps reading the old ID. Deleting an attribute or a type doesn't delete it on an instance, so delete it in Business Manager too

Usages

The Usages column counts the places in scripts and templates that read each custom attribute: … while it counts, a grey 0 when nothing reads it. Click the count, or choose Find Usages in Code, to list the places with their path and line, their cartridge and the code that reads it. A single place opens at once

The Metadata Editor edits site archive XML on the Design tab as a tree and a form: metadata with the places in code that use each attribute, services, jobs, preferences and custom objects. Every edit writes the XML, and the file's problems show in the view and in VS Code's Problems, each fix a Quick Fix

The form's Code section lists the first places with Show All in Find. The counts come from the language server, as Go to Definition does, and follow your edits

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... walks through the new attribute in the Command Palette, one step at a time:

The Metadata Editor edits site archive XML on the Design tab as a tree and a form: metadata with the places in code that use each attribute, services, jobs, preferences and custom objects. Every edit writes the XML, and the file's problems show in the view and in VS Code's Problems, each fix a Quick Fix
  1. The object type
  2. The type, among the 16 types, each with a sample value
  3. The ID, then the name
  4. The group: No group, one of the type's groups or New group...
  5. The flags. An enum adds Select multiple and Immutable
  6. The values of an enum, then the description, unit, default and constraints

The other adds 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 and retention)

Properties

Click a row and the Properties tab under the tree shows it, with Show in XML in its header. Several selected rows read 3 rows selected and their changes apply to all of them

The Metadata Editor edits site archive XML on the Design tab as a tree and a form: metadata with the places in code that use each attribute, services, jobs, preferences and custom objects. Every edit writes the XML, and the file's problems show in the view and in VS Code's Problems, each fix a Quick Fix
SectionSettings
The attributeID, Name, Description and Type, with the groups as chips, Add to Looks and New Group...
FlagsLocalizable, Site-specific, Mandatory, Visible, Externally managed, Order required, Externally defined
ValuesFor an enum: each value, its name and the default
ValueThe default, then the settings for the type, such as Min length or Unit

Changing the type asks first, since an import fails on an instance that already has the attribute. A group shows its Attributes in Business Manager's order, with New Attribute..., System Attribute..., Sort by ID and Sort by Name. A custom object type shows its Storage

The language button beside Name, Description and Unit opens its translations, with Add a locale, and its badge counts them. A long text opens Beside the Form, Below the Form or In the Form, from Editor Placement in the header, and writes on ⌘Enter / Ctrl+Enter or when you leave it. Escape puts the file's text back

Metadata problems

ProblemExample
A repeated definitionProduct defines careInstructions more than once
A repeated group or listingThe group Looks lists color more than once
A wrong defaultThe default value of isGiftWrappable is no boolean
Schema errorsChecked against the bundled metadata.xsd

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 Metadata Editor edits site archive XML on the Design tab as a tree and a form: metadata with the places in code that use each attribute, services, jobs, preferences and custom objects. Every edit writes the XML, and the file's problems show in the view and in VS Code's Problems, each fix a Quick Fix
  • Service: Type, Log prefix, and the Enabled, Mock mode, Communication log and Force production log flags
  • Profile: Go to and Copy to New Profile, the 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 Replace...
  • A profile or credential lists its services under Used by

Add › Service... asks for the ID (Such as int_payments.http.authorize: the cartridge, the protocol, the API). Right-click a service for Copy createService Call, Select Services Using This, Create Missing Profile or Create Missing Credential. 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

Jobs

The scopes are Organization and Sites, and the quick pills Scheduled and Custom steps. The columns are Type, Runs in, Schedule and On. The Schedule column reads Manual, or No trigger in red: the import rejects a job without triggers

The Metadata Editor edits site archive XML on the Design tab as a tree and a form: metadata with the places in code that use each attribute, services, jobs, preferences and custom objects. Every edit writes the XML, and the file's problems show in the view and in VS Code's Problems, each fix a Quick Fix

Add offers Job..., Step..., Flow..., Split... and Job Parameter.... Step... opens Add Step, the step types with their purpose, custom ones first. The step form lists the type's parameters with Add Missing Parameters, Remove Undeclared Parameters, Go to Step Type, Go to Module, Bind to Job Parameter and Unbind. The job form holds Runs in, the parameters, the schedule (Once or Recurring, On exit), notifications and the steps

The checks include missing triggers (fix Add Triggers), and ExecuteScriptModule and ExecutePipeline, which should be a custom step type in steptypes.json

Site preferences

The scopes are Custom and Standard, grouped by attribute group, and the quick pills Differs and Not in metadata. The columns are Type, All instances, Development, Staging and Production. = means the same as Development

The Metadata Editor edits site archive XML on the Design tab as a tree and a form: metadata with the places in code that use each attribute, services, jobs, preferences and custom objects. Every edit writes the XML, and the file's problems show in the view and in VS Code's Problems, each fix a Quick Fix

The form has Move to All Instances, Clear in Staging, Compare Tiers... (Development with Production), Go to Definition and Copy Script. A preference no metadata defines reads Not in metadata in red: Create Definition... adds it to your metadata with the type its value suggests. An enum value written as its display name gets Replace Display Names with Values

Custom objects

There is a scope per custom object type when the file has several, and the quick pills Empty mandatory and Not in type. With a type picked, each attribute of the type is a column. An attribute the type doesn't define reads (not in type)

The Metadata Editor edits site archive XML on the Design tab as a tree and a form: metadata with the places in code that use each attribute, services, jobs, preferences and custom objects. Every edit writes the XML, and the file's problems show in the view and in VS Code's Problems, each fix a Quick Fix

The form shows the type and key with Go to Type Definition and Copy Script, then the attributes. A value the type doesn't define shows under Not in the type definition, with Define legacyCode... and Remove legacyCode. Select several objects to edit their shared values, Mixed where they differ. Paste also reads rows copied from a spreadsheet, by their headers

Content slots

The scopes are Global, Category and Folder, and the quick pills Disabled and Problems. The columns are Content, Template, Schedule, On, Default and Usages, and On, Default and Template edit in place. The form sets the configuration, the content with Switch Content, the callout message and the targeting: rank, start and end, weekdays and times. Add offers Configuration... and Campaign Assignment..., and right-click a configuration for Make Default, Go to Template or Go to Content Asset

Content libraries

The scopes are Assets, Pages and Folders, and the quick pills Offline and Problems. The columns are Kind, Locales, Online, Searchable and Usages. A component in red has no type in any cartridge: Create Page Designer Type writes one. The form covers the asset, its flags with Override for a Site..., the HTML body with Compare Locales... and Copy to Locales..., folders, SEO, Page Designer regions and component data, edited as a form or as JSON

Site, tax and locales

  • Site: the site's settings, its cartridge path and its home page meta tag rules
  • Tax: tax classes and jurisdictions, with a rate grid you edit in place
  • Locales: each locale's fallback, with a price, a number and a date as the locale writes them

Usages column

Services, site preferences, custom objects, slots and libraries have a Usages column, Places in scripts and templates, and the filters Used in code and Unused in code. Click a count, or Find Usages in Code, to list the places with their path, line, cartridge and code. A single place opens at once. The form's Code section lists the first places with Show All in Find. It is a text search: comments count, and an ID built at run time isn't found

Usages in the XML

In the XML editor, each ID that code names shows its usages above its element, 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 usagesCounted in
Services, credentials and site preferencesEvery place code names the ID, and the site data that names it
Content assets, folders, pages, slot configurations, custom objects and their types, customer groups, campaigns, promotions, payment methods, sorting rules, catalogs, categories, price books, inventory lists, coupons and storesThe Script API calls that take the ID, and the site data that names it

Turn them off with the intellij-sfcc.impex.usagesLens setting. The usages need an active license or trial

Search the site archive

Go to Symbol in Workspace (⌘T / Ctrl+T) and Intellij SFCC: Search Site Archive find the services, jobs, preferences, custom objects, slots, library content and sites the files define. See Search the site archive

License

The Metadata Editor needs an active license or trial, see Purchase & License. Without one, the Metadata Editor shows the file read only with Renew Access and Sync Access, and site archive files open as XML. The XML editor still edits the file. Usage counts, the usages in the XML, problems, the Outline and Compare need a license too

Troubleshooting

ProblemFix
No Open in Design buttonCheck the root element and namespace of the file, such as metadata with the namespace above. A kind with no bundled schema stays in the XML editor
A file opens as XMLRead When the XML opens instead, or click Open in Design. A file over 2.5 MB stays in the text editor
The editor is read onlyRead its banner: fix the XML, add a license, or Edit Anyway in a migration folder
The XML has no metadata rootUse Fix it in the XML, then check the root element
Usages show …They are counted once the project has been read
A Page Designer component is redNo cartridge defines its type: Create Page Designer Type writes one

On this page