Go Back
Update an Environment Variable in a Recipe
Publisher
:
Run In Lingk
Description
This recipe shows how to update an environment variable in a recipe
Browse the knowledge base
Twitter
E-Mail
# _____ _ _____ __ # | __ \ (_) |_ _| / _| # | |__) |___ ___ _ _ __ ___ | | _ __ | |_ ___ # | _ // _ \/ __| | '_ \ / _ \ | | | '_ \| _/ _ \ # | | \ \ __/ (__| | |_) | __/ _| |_| | | | || (_) | # |_| \_\___|\___|_| .__/ \___| |_____|_| |_|_| \___/ # | | # |_| # Project Name - Update an Environment Variable in a Recipe # Recipe URL - https://app.lingk.io/a/10932/tf/18506 # Description - This recipe shows how to update an environment variable in a recipe # Systems - # Connectors - JSON # Data Flows - Single Direction # Connection Type - Static Data # Add Recipe notes / Change log information here! # _____ _ # / ____| | | # | | ___ _ __ _ __ ___ ___| |_ ___ _ __ ___ # | | / _ \| '_ \| '_ \ / _ \/ __| __/ _ \| '__/ __| # | |___| (_) | | | | | | | __/ (__| || (_) | | \__ \ # \_____\___/|_| |_|_| |_|\___|\___|\__\___/|_| |___/ # # CONNECTORS specify what data will be pulled into the in-memory database during processing connectors: # Configure JSON connector in your Environment before running this recipe # JSON Setup - https://help.lingk.io/en/articles/74-json-connector-reference - name: UpdateEnvVars type: json properties: jsonObject: > [ { "password": "myPassw0rd123!", "username": "mUsern4mE123!" } ] - name: useEnvVars type: json properties: jsonObject: > [ { "password": "pw is {{env.vars.password}}", "username": "username is {{env.vars.username}}" } ] # _____ _ _ _ # / ____| | | | | | # | (___ | |_ __ _| |_ ___ _ __ ___ ___ _ __ | |_ ___ # \___ \| __/ _` | __/ _ \ '_ ` _ \ / _ \ '_ \| __/ __| # ____) | || (_| | || __/ | | | | | __/ | | | |_\__ \ # |_____/ \__\__,_|\__\___|_| |_| |_|\___|_| |_|\__|___/ # STATEMENTS specify how the data should be processed while in memory statements: # print EnvVars before update - statement: PRINT env.vars - statement: PRINT useEnvVars # Update EnvVars - statement: UPDATE UpdateEnvVars INTO env.vars # Print env.vars after update - statement: PRINT env.vars - statement: PRINT useEnvVars # Add more statements to convert, join, aggregrate, transform, and integrate your data
Date Transformation - SQL Function Examples
Using SQL date functions to get new values