Upload and run a job

Prerequisites
  • Node 18

  • npm

  • dxp-cli-next

Procedure
  1. Create a directory in which to store your package.

  2. Create your code in the following files:

    • main.js

    • manifest.json

  3. Run npm init.

  4. Run npm install <packagename> to install any required packages and dependencies.

  5. Upload the entire contents of the directory using the uploadJob CLI command.

  6. Navigate to the Jobs page within Squiz DXP: Home  Configuration  Job runner  Jobs

    The Jobs page
  7. Your newly uploaded job will be in the list of jobs.

  8. Click on the name of your new job to open the Job executions page.

    The Job executions page
  9. Click on Start job to open the Start job modal.

  10. On the Start job modal:

    • Select the context in which to run the job.

    • Define the values for inputs.

      The Start job modal
  11. Click on Start job to start the job.