Skip to content

Help make the extensions Marketplace better for everyone. Take this survey!

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

SFCC DW Helper

ttrodrigues

|
28 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

Edition of dw.json directly on the sidebar

 

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

 

 

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft