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.

variables_global_configuration_object.png 

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.

    retrieve_value_variable_global_configuration_object_custom_database.png  
  4. Select a Node version from the list and click Try

    try_login_script_custom_database_connection_auth0.png 
  5. Go to Extensions and open Real-time Webtask Logs. Here, the value in the script shows up in the logs. 

    logs in Real-Time Webtask  

Recommended content

No recommended content found...