Skip to main content

Creating a Custom Package

  1. Click + New Package (ensure you have the required grants).
  2. Fill in the required fields:
    • Package Name
    • Package Description
    • Language (JavaScript or Python)
  3. (Optional) Upload a thumbnail.
  4. Click Create New Package to open it in the code editor.

Creating a New Package Version

To update a package (e.g., add or update a function):
  1. Open the package in the code editor.
  2. Click Create New Version.
  3. Select a version to copy from.
  4. Enter the new version number (Semantic Versioning).
  5. (Optional) Add a version description.
  6. Click Create New Version.
The new version becomes the default, but you can access earlier versions as needed.

Code Engine Library

The Code Engine library provides methods for internal and external API calls. Import it with require("codeengine").

codeengine.sendRequest

Make calls to internal Domo APIs. Example:

codeengine.getAccount

Retrieve account credentials for use in external API calls. Example:

codeengine.axios

Make external HTTP requests. Example: