Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>SFCC DW HelperNew to Visual Studio Code? Get it now.
SFCC DW Helper

SFCC DW Helper

ttrodrigues

|
155 installs
| (0) | Free
Helper for dw.json file usage to connect to an SFCC environment
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SFCC-DW-Helper

Small extension to help the SFCC (SalesForce Commerce Cloud) developers, to edit the dw.json file, run commands of Prophet and control the environment Code Versions.

 

Why this Extension?

Simplify the life to SFCC developers, with an extension that provides direct edition of dw.json and the possibility of run Prophet commands on the same sidebar.

The extension validates the mandatory fields that the dw.json require to connect with an SFCC environment, that are necessary for Prophet uploads the code and to start a debug.

Field Required Is Validated?
hostname
code-version
username
password

The main commands Clean Project/Upload All, Enable Upload and Disable Upload, are present on the sidebar, for quick execution of them.

For simplify the work of the developers, it's possible to enable until two custom buttons, configured on settings on section SFCC DW Helper. These buttons will only run terminal commands.

Interact with environment present on dw.json, to get, create, and delete Code Versions.

 

Features

Edit the dw.json file with modern design

Edition of dw.json directly on the sidebar with a refresh and simplicity design

 

New Status bar information for the connection status

Now we can check directly on Status bar the status of our connection to environment. When clicked, the SFCC DW Helper sidebar we be focused.

 

Hiding the user's password

Possibility of hide and show the password field

 

Basic Prophet commands

The three Prophet commands present on sidebar, without requiring the execution of these commands by the Command Palette of VS Code.

 

Schema validation

JSON schema validation at start of the extension activation, when the sidebar SFCC DW Helper icon is clicked for the first time on a VS Code window. It check if all fields are of string type and if the field name is the correct.

 

Controls to compilers

Possibility to render until two buttons, for building code, per example, with custom label text and custom terminal commands, all configured on Settings, on SFCC DW Helper section.

The button only will be rendering if the toggle is enabled and both text fields fulfilled.

 

History of inputted data on settings

The history of Hostname and Code Version inputted data, will be saved on settings.json on an arrays (Hostname History and Codeversion History respectively)

 

Interact with environment Code Versions

Possibility to connect to SalesForce Commerce Cloud, via OCAPI, to get all Code Versions of the environment configured on dw.json to do:

  • Get all Code Versions and see what is currently active
  • Active a Code Version when click on them on list
  • Create and delete Code Versions directly on environment

All necessary fields, Client ID and Client Password should be fulfilled to an successful connection to the environment. For more information, the SalesForce Commerce Cloud documentation can be accessed here.

In your environment, should be configured the GET method to /code_versions endpoint, used only to get Code Versions. The methods PUT and DELETE, should be configurated on /code_versions/* endpoint to excute all other operations related with Code Versions.

On Business Manager, search by OCAPI settings, later select the Data API and include the following object on your Client ID configuration:

 {
    "resource_id": "/code_versions",
    "methods": ["get"],
    "read_attributes": "(**)",
    "write_attributes": "(**)"
},
{
    "resource_id": "/code_versions/*",
    "methods": ["put", "delete"],
    "read_attributes": "(**)",
    "write_attributes": "(**)"
}

With this feature you can see the current active Code Version on the environment. When an Code Version is choose, this one will be saved on your Codeversion History, like the original feature. In case of any error to get the Code Versions via OCAPI, the original feature of access to Codeversion History will be automatically set.

For more information, please see the SalesForce Commerce Cloud documentation can be accessed here

List of Code Versions to select

Create a new Code Version

Select a Code Version to delete

 

Extension Settings

All necessary configurations of the extension will be automatically updated on the user's settings.json, when the star button is clicked:

  • sfcc-dw-helper.enableDevBuildBtn: Enable/Disable the button on sidebar with custom command for build code in Development compiler
  • sfcc-dw-helper.enablePrdBuildBtn: Enable/Disable the button on sidebar with custom command for build code in Production compiler
  • sfcc-dw-helper.commandDevBuildBtn: Command for build code in Development compiler
  • sfcc-dw-helper.commandPrdBuildBtn: Command for build code in Production compiler
  • sfcc-dw-helper.textDevBuildBtn: Text for the build code button in Development compilerr
  • sfcc-dw-helper.textPrdBuildBtn: Text for the build code button in Production compiler
  • sfcc-dw-helper.hostnameHistory: Array with the history of last 10 introduced Hotsname
  • sfcc-dw-helper.codeversionHistory: Array with the history of last 20 introduced Code Version
  • sfcc-dw-helper.ocapiClientId: Value of the OCAPI Client Id
  • sfcc-dw-helper.ocapiClientPassword: Value of the OCAPI Client Password

 

Known Issues

None, until now.

 

Release Notes

[0.0.38]

  • Minor fixes on font type of extension

[0.0.37]

  • Minor fixes on font type of extension

[0.0.36]

  • Minor fixes on font type of extension

[0.0.35]

  • Minor fixes on font type of extension

[0.0.34]

  • Minor fixes on font type of extension and minor improvement on popup to delete an Code Version

[0.0.33]

  • Implemented await-to-js lib for easy error handling

[0.0.32]

  • Implemented cache to access token to improve performance

[0.0.31]

  • Fix minor layout issue

[0.0.30]

  • Added new loading animation
  • Added loading when is connecting the environment to create and delete code versions
  • Fix minor layout issues

[0.0.29]

  • Fix bug when try to open webview of extension on a window without workspace open
  • Improvements on quickpick of Code Version selection when is getting information from environment
  • Added loading information when clicks to get Code Versions of an environment

[0.0.28]

  • Minor layout fixes

[0.0.27]

  • Added shortcuts to Business Manager and Storefront on main screen
  • Added shortcut to extension settings on settings screen
  • Minor refactor to delete useless code

[0.0.26]

  • Minor fix to disable code uploading when any compile buttons is clicked
  • Minor improvements on icons of history and show/hide password

[0.0.25]

  • Added a status bar info about the connection to environment status
  • Minor improvements on some features

[0.0.24]

  • Minor layout fixes

[0.0.23]

  • Minor layout fixes

[0.0.22]

  • Major code refactor
  • New design of extension, similar to my other VS Code Extension SFCC Docs

[0.0.21]

  • Add improvement to disable code upload when changing the dw.json file or when select another hostname or code version

[0.0.20]

  • Add the functionality to activate the Code Version, when is connected to an hostname
  • Add the functionality to create and delete Code Versions of the current hostname

[0.0.19]

  • Add the functionality to get the Code Versions of the current hostname

[0.0.18]

  • Layout fixes

[0.0.17]

  • Minor fixes

[0.0.16]

  • Refactoring code

[0.0.15]

  • Minor fixes on sidebar layout

[0.0.14]

  • Minor fixes on sidebar layout

[0.0.13]

  • Minor fixes on sidebar collapse feature

[0.0.12]

  • Implementation of history for Hostname and Code Version fields
  • Selection of user inputted history by QuickPick
  • Implementation of collapse sections on sidebar

[0.0.11]

  • Initial production release
  • Possibility to execute compiler commands
  • Possibility to execute Prophet commands

[0.0.1] - [0.0.10]

  • Beta releases
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft