Overview
This article explains how to find the values of the variables used when using a database action script. These values are available in all scripts and are accessible through the global configuration object.
Applies To
- Database Connections
- Actions
- Action Scripts
- Environment Variables
- Global Configuration Object
Solution
- In the script, add console.log(configuration.{Your Target Variable}).
Example: if the key(target variable) is test, write:console.log(configuration.test);
- Go to Extensions in the Auth0 dashboard and install Real-time Webtask Logs.
- Select Save And Try the database action script.
- Select a Node version from the list and click Try.
- Go to Extensions and open Real-time Webtask Logs. Here, the value in the script shows up in the logs.