Find the Current Value of a Custom Database Connection Action Script Environment Variable

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

  1. In the script, add console.log(configuration.{Your Target Variable}).
    Example: if the key(target variable) is test, write:
    console.log(configuration.test);
    
  2. Go to Extensions in the Auth0 dashboard and install Real-time Webtask Logs.
  3. Select Save And Try the database action script.
  4. Select a Node version from the list and click Try.
  5. Go to Extensions and open Real-time Webtask Logs. Here, the value in the script shows up in the logs.