Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>NP Retail workflow language supportNew to Visual Studio Code? Get it now.
NP Retail workflow language support

NP Retail workflow language support

Preview

NaviPartner

|
360 installs
| (1) | Free
Providing intellisense for POS Action workflow code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Overview

Welcome to the Workflow Language extension for NaviPartner NP Retail.

With this extension, developers get support for formatting, syntax highlighting and IntelliSense when writing workflow Javascript code.

Features

On hover documentation

Are you unsure what specific workflow objects do? No worries - hover the object with your cursor and you will have the documentation at hand.

On hover feature

Completion suggestions

Not sure what you are looking for? Let the completion suggestions guide you.

Completion suggestions

Diagnostics

You know how annoying typos can be - we have your back.

Completion suggestions

Javascript minify and injection

Coding POS Actions for NP Retail requires some Javascript juggling. Every time some of the Javascript code is changed, the developer needs to minify and inject it into the respective .al file.

Since we know we this process can be cumbersome, this extension will take care of the process if configured correctly. By adding the following comment to any .al file will automatically minify and inject the javascript code at the line below:

`//###NPR_INJECT_FROM_FILE:<javascript_pos_action>###`

Completion suggestions

Javascript formatting

Consistency is key! Hence Prettier and Eslint in embedded in this extension, making it easy for developers to keep an pretty and consistent code formatting. This feature is disabled by default as it can conflict with auto-saving.

Thus, if this feature sounds appealing you will need to do two things:

  1. Disable auto saving by under Settings > Files > Auto Save (the dropdown should be at off).
  2. Enable the onSave formatting by this extension under Settings > Extensions > NP Retail Workflow > usePrettier (the checkbox should be checked).

Prettier formatting

Getting started

  1. Install the extension from the Marketplace.
  2. With the extension installed open any file named by the convention POSAction<actionName>.js and start writing your workflow code.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft