Global packages

- Taking common actions in Domo by leveraging the Product APIs
- Utility functions for manipulating small amounts of data
Custom packages
By creating custom packages you can write functions beyond what is covered in the global packages. Common use-cases for custom packages are:- to hit Domo APIs not covered by a global package
- to hit non-Domo APIs to trigger events in external systems
- to reshape inputs and outputs a across steps in a Workflow
codeengine.sendRequest provides a wrapper around internal Domo APIs and inherits authentication from the user making the request. You can see an example Javascript request here.
codeengine.getAccount securely reads in credentials stored in Domo’s Account layer, which you can use in requests to external APIs. See a Javascript example here.
codeengine.axios provides access to the Axios library, which you can use to send requests to external APIs and handle authentication yourself. This can be beneficial when you want to run a function:
- using a service account
- to hit Domo APIs across Domo instances
- to hit external APIs