B2C Metadata lists the site archive XML files of your project in one view of the Intellij SFCC side bar: metadata, catalogs, price books, libraries, preferences, jobs, services, slots and the other import files. Each file sits under the organization or the site it belongs to, and opens into what it defines, with the usages in code of each ID
Open the view
Click the Intellij SFCC icon in the Activity Bar, then expand B2C Metadata, after B2C Entry Points. The view shows once a cartridge is linked to the project
- While it looks for files, the view reads Looking for site archive XML...
- Show in B2C Metadata in the summary of the Metadata Editor selects the open file in the view, and clears a search or filter that hides it
⌘F(Ctrl+Fon Windows and Linux) in the view focuses the search
The toolbar
| Control | What it does |
|---|---|
| Search | Search metadata, catalogs, preferences, jobs, services filters the tree. Escape clears it |
| Scope | All, Organization, All Sites, or one site under Sites. The workspace keeps your choice |
| Group by Type | Lists the kinds of files first, each with its sites |
| Unused in code | Keeps only the entries no script or template names, see Unused in code |
| Refresh | Looks for site archive XML again |
| Select Opened File | Selects the file of the editor in front. Greyed out when that file is not in the view |
| Expand All, Collapse All | The tree's branches |
Buttons that don't fit a narrow side bar move into More Actions. The status line under the tree counts what you see: 9 files in 2 archives, 2 of 9 files while a scope narrows the tree, 2 matches while you search, or 3 unused
Organization and sites
Organization holds the data at the top of the site archives: metadata, catalogs, price books, shared libraries, jobs, services and global preferences. Sites holds each site's data: preferences, content slots, promotions and customer groups. Each file shows its name, its size coloured from green for the project's smallest files to red for its largest, and its archive in grey
The extension decides the owner from the file, so exports that don't follow the archive layout still land in the right place:
| File | Belongs to |
|---|---|
Anything under sites/<site>/ | That site |
A site file in an export folder named for a site, such as AcmeUS/preferences.xml | That site |
| A custom object | The storage-scope of its type in your metadata, site or organization |
A library under libraries/<id> or with a library-id | The organization, as a shared library |
| Preferences outside a site folder | Site or organization, from the preference IDs it sets |
| A site file in no folder that names a site | Sites, marked no site folder |
Group by Type
Group by Type lists the kinds instead, such as Metadata, Custom Objects or Preferences, each with its sites and then its organization files. The workspace keeps the choice
What each file holds
Each file opens into what it defines, in file order: services, profiles and credentials, jobs, preferences, custom objects, slot configurations, library content and folders, and the sites of a site.xml. Each row shows the ID, then its kind in grey. An entry the file marks mode="delete" is struck through
Types in metadata
A metadata file lists the custom object types it defines and the system objects it extends, each as Custom object type or System object. A type opens into the lists the Metadata Editor shows for it:
| List | Holds |
|---|---|
| Custom Attributes | The custom attributes the file defines for the type, with their names, types and usages in code |
| Groups | The attribute groups the file defines for the type, with the attributes each lists |
| Attributes | The system attributes the file changes for the type. A custom object type's key comes first, marked Key |
A list shows only when the file has something for it, and a type with nothing to list doesn't open
Usages
An entry that code names, such as a service, a preference or a custom object type, shows how many places use it: no usages, 1 usage, 12 usages, as the usages lens above its ID in the XML does. A custom attribute counts its reads in scripts and templates, as the Metadata Editor does. Click the count, or right-click the row and choose Show Usages, to list the places with their line and cartridge. A single place opens at once. The counts follow your edits
Jobs and sites show no count, since code doesn't name them
Unused in code
Unused in code keeps only the entries no script or template names, such as a service nothing creates or a custom object type nothing reads. The status line counts them, and the tree reads No unused entries when there are none
A system object is never listed, since code doesn't name it by its ID. The check is a text search, so an ID that code builds at run time is not found. The filter is off each time VS Code starts
Search
Type a file name, a kind or a path: objecttype finds the metadata files, and catalog the catalogs. The search also finds the IDs of entries, custom attributes, system attributes and groups, such as acme.http or acmeAccountId, and opens the rows that hold them. The matched part is highlighted
Downselects the first match and moves to the tree,Enteropens it- Typing in the tree goes back to the search
- A group found by its own ID lists all its attributes, and a group found through one of its attributes lists that attribute
- A search shows up to 500 files, then N more, refine the search
- A search with no match reads Nothing matches "promo", and a scope with no file No files in AcmeUS
Open files and entries
A single click opens a file or an entry, as a command item does in VS Code's trees, and its chevron opens or closes it. The click shows it in a preview tab and leaves the focus in the view, so you can click through files. A double click or Enter keeps the tab and moves the focus to it, as the Explorer does
Files open in the Metadata Editor on Design: metadata, services, jobs, preferences, custom objects, slots, libraries and the other kinds in their own design. An entry, a group or an attribute opens its file with that row selected. A file over 2.5 MB opens as text
The context menu
| Right-click | Items |
|---|---|
| A file | Open, Open Schema (services.xsd) when its kind has a bundled schema, Reveal in Explorer, Copy Path, Copy Path from Content Root and Copy Namespace |
| An entry, a group or an attribute | Open in Editor, Show Usages when it has a count, and Copy ID |
Shift+F10 or the Menu key opens the menu from the keyboard, and the arrow keys, Home, End, Page Up and Page Down move through the tree
Search the site archive
Two searches find what the files define: services, profiles and credentials, jobs, preferences, custom objects, slot configurations, library content and folders, and sites
| Search | How | Opens |
|---|---|---|
| Go to Symbol in Workspace | ⌘T (Ctrl+T on Windows and Linux), then type an ID | The XML at the element's start tag |
| Search Site Archive | Intellij SFCC: Search Site Archive in the Command Palette | The file on Design with that row selected |
Search Site Archive reads Service, job, preference, custom object, slot, content asset or site ID. Its Filter by Kind button picks the kinds to list, Services, Jobs, Preferences, Custom Objects, Slots, Library and Sites, and Go to Symbol follows the same choice. The workspace keeps it
Always current
The view doesn't parse whole files. It reads each one up to its root element, so a catalog of hundreds of megabytes costs what a small file does. Folders named cartridge and node_modules, and dot folders, are skipped. Unsaved edits, saves, new and deleted files, cartridge changes and branch switches update the tree within a moment, and a branch switch rescans once
License
B2C Metadata needs an active license or trial, see Purchase & License. Without one, the view reads B2C Metadata requires plugin access through a trial, personal subscription, or assigned organization seat. After a renewal or a new seat, click Sync Access
Troubleshooting
| Problem | Fix |
|---|---|
| No site archive XML in this project | Add the import files to the workspace as .xml, such as meta/system-objecttype-extensions.xml. Files inside cartridges and node_modules aren't listed |
| No B2C Metadata view | Link a cartridge first, see Cartridges |
| A site file is under no site folder | Move it to sites/<site>/, or to a folder named for the site |
| Custom attributes show no count | The counts come from the language server once it has read the project |