Skip to Content

Search Everywhere

Find pipelines, routes, hooks, step types and custom APIs, and the services, jobs and preferences of your site archive, in Search Everywhere

Press Shift twice and Search Everywhere gets a B2C Entry Points tab. It finds the pipelines, controller routes, hooks, step types and custom APIs of your linked cartridges by name, the same entries as the B2C Entry Points tool window, and Enter opens the code that runs

The B2C Entry Points tab of Search Everywhere finds pipelines, routes, hooks such as the OCAPI and SCAPI hooks, step types and custom APIs by name. Scroll the results, filter them by kind, and press Enter to open the code that runs. File results name their cartridge

A Site Archive tab sits beside it for what your site archive XML defines, see Site Archive

Open the B2C Entry Points tab

The tab shows up in projects with at least one linked cartridge, see Cartridges & Modules. Results need a valid license or trial

Press Shift twice

B2C Entry Points sits after Symbols and before Actions. Click it, or press Tab until it is selected

Type part of a name

An empty field lists nothing. While the IDE indexes, the tab searches the entries it collected last

Press Enter

Pick a result with ↑ and ↓, or scroll the list. The entry opens at the code that runs it, see Open the code. A double-click does the same

What a result shows

Each row is the tool window's tree row with the cartridge at the end

KindRowExample
Pipeline The pipeline name and its typeCart view app_storefront_pipelines
Start node The route of the start node and start nodeCart-Show start node app_storefront_pipelines
Controller route The full route name and its method. A SiteGenesis route shows its guards, such as get, httpsCart-Show GET app_storefront_base
Hook The hook name, system for a Salesforce hook point, including OCAPI and SCAPI hooks such as dw.ocapi.shop.basket.items.beforePOST, and the script pathdw.order.calculate system ./cartridge/scripts/hooks/cart/calculate.js app_storefront_base
Step type The step type ID, its kind (Script, Chunk or Pipeline) and the module file or pipeline it runscustom.Loyalty-SyncMembers Chunk syncMembers.js int_loyalty
Custom API The method, the SCAPI path (/<api>/v<version><path>) and the operation ID. An operation missing from schema.yaml shows not in the schemaGET /loyalty/v1/members/{memberId}/points getPoints int_loyalty

Methods use the colours of the tool window: GET blue, POST green, PUT orange, PATCH purple, DELETE red and others, such as APPEND, grey. A SiteGenesis guard list takes the colour of its first guard. The text your search matched is highlighted

How names match

Names match the way class names do in the IDE: case doesn't matter, and letters match word starts and camel humps anywhere in the name

You typeFinds
cart-shCart-Show first, then Cart-SelectShippingMethod and Cart-MiniCartShow
MiniCSCart-MiniCartShow
order.calcdw.order.calculate
syncmemcustom.Loyalty-SyncMembers
posEvery kind at once: the PosTerminal pipeline and its start nodes, the pos custom API, pos_terminal payment hooks and OCAPI hooks such as dw.ocapi.shop.basket.beforePOST

A -, . or _ you type has to appear in the name. Besides its name:

  • A custom API also matches by its API name and versioned path, such as loyalty or v1/members, one step below a name match
  • Other text of a row matches as plain text, below every name match: a hook's script path, a step type's module, function and pipeline, a custom API's summary and a pipeline's group and type. So loyaltyCalculate finds the dw.order.calculate hook whose script it is

The best match comes first. Equal matches follow the cartridge path of the site selected in the Site Scope widget, so the copy that runs on that site comes first. Cartridges outside that path, and every cartridge with Global scope, follow in the order of the tool window

Filter by kind

The funnel at the right of the tab row picks the kinds the tab shows: Pipelines, Controllers, Hooks, Step Types and Custom APIs, with the buttons All, None and Invert

  • The funnel shows a dot while a kind is hidden
  • The kinds you hide are saved for the project
  • The filter applies to the All tab too

Open the code

Results have no preview. Enter or a double-click opens the code that runs, or the declaration when that code can't be found

ResultOpens
PipelineThe pipeline in the Pipeline Editor
Start nodeThe pipeline in the Pipeline Editor, on that start node
Controller routeThe line that defines the route, such as server.append('Show', ...)
HookThe script the hook runs. A system hook opens at the function its name ends with, such as beforePOST for dw.ocapi.shop.basket.items.beforePOST. Without the script, the entry in hooks.json
Step typeThe step's function in its module, or execute for a script step that names none. A pipeline step opens its pipeline on the start node it calls. Without the module, the declaration in steptypes.json
Custom APIThe function of the implementation script named after the operation ID. Without it, the operation in schema.yaml, then the endpoint in api.json

Site Archive

The Site Archive tab finds what the site archive files of the project define, by ID. It comes after B2C Entry Points and needs a license

The Site Archive tab of Search Everywhere finds what the site archive files define by ID, with the kind and the file of each row. Custom objects carry their type and slot configurations their slot and context. The funnel hides kinds, and Enter opens the file in its editor with the row selected
KindFinds
Service, Profile, Credential<service>, <service-profile> and <service-credential> in services XML
Job<job> in jobs XML
Preference<preference> in preferences XML, once for all its instance types
Custom object<custom-object>, with its type: PaymentCountry / AT
Slot configuration<slot-configuration>, with its slot and context: header-banner / summer global
Content, Folder<content> and <folder> in library XML

Each row shows the kind icon, the ID, its kind and the file it is in, such as AcmeUS/preferences.xml. A row marked mode="delete" is struck out. The funnel hides kinds, and the project keeps your choice

Enter opens the file in its site archive editor with that row selected. Commented-out XML isn't found

The All tab

Entry points also show up in the All tab under a B2C Entry Points group, so one search finds a controller file and the routes it defines. File results there and in the Files and Symbols tabs show their cartridge on the right, see Search & Navigation. ISML custom tags are in the Symbols tab by their tag name, see ISML Custom Tags

Troubleshooting

SymptomWhat to do
There is no B2C Entry Points tabLink a cartridge, see Cartridges & Modules
The tab finds nothingCheck that the license or trial is valid. Open the funnel and check the kinds, with every kind unchecked nothing matches
Routes or hooks are missing from the All tabThe funnel of the B2C Entry Points tab hides that kind
A search with - or . misses a nameThe separator has to appear in the name. Leave it out to match word starts, such as cartsh for Cart-Show
A hook opens hooks.json, not its scriptThe script path doesn't resolve to a file. Cmd+Click the path in hooks.json to check it

On this page