-
Notifications
You must be signed in to change notification settings - Fork 17
Functions:Helper Functions
Thomas Timmer edited this page Jun 26, 2023
·
12 revisions
Functions are run within an (Isolated-vm) instance and will therefore have limited access to features you'd normally expect from within NodeJS (e.g.: http and filesystem access).
To still enable some of these functionalities, the runtime ships with a few global functions that we call 'Helper Functions'.
- gql Send queries and mutations to the DataAPI
- generateDocx Generate Docx files based on a template
- fetch Used to make HTTP(S) requests. Wrapper around node-fetch
- console.log Print statements to the Application Logs. (Currently only available to internal developers)
- runAction Running (sub) actions
- smtp Sending emails
- SQL Send raw SQL queries to external databases
- storeFile Store files in the asset store
- parseData Parse different data formats
- Getting started
- Page Builder Components
- Action Functions
- [deprecated] CustomFunctions