---
title: Parameterize jobs
description: Parameterize Lakeflow Jobs using job parameters, task parameters, dynamic value references, and task values to pass values into and between tasks.
canonical_url: https://docs.databricks.com/aws/en/jobs/parameters
---

# Parameterize jobs

Parameters let you pass values into a job and its tasks and reference values between tasks. This article introduces the parameter types available in Lakeflow Jobs and how to configure them in the UI. You must also update the source code assets you configure as tasks to reference parameters. Parameter references vary by language and task type. See [Access parameter values from a task](https://docs.databricks.com/aws/en/jobs/parameter-use.md).

The following are foundational concepts for understanding parameters for jobs:

* **Job parameter**: A key-value pair defined at the job level and pushed down to tasks. See [Configure job parameters](https://docs.databricks.com/aws/en/jobs/job-parameters.md).
* **Task parameter**: A key-value pair or JSON array defined at the task level. See [Configure task parameters](https://docs.databricks.com/aws/en/jobs/task-parameters.md).
* **Dynamic value references**: A syntax for referencing job conditions, metadata, and parameters when configuring tasks. See [Dynamic value references](https://docs.databricks.com/aws/en/jobs/dynamic-value-references.md).
* **Task values**: A syntax for capturing and referencing values generated during task runs. See [Use task values to pass information between tasks](https://docs.databricks.com/aws/en/jobs/task-values.md).
* **Access parameter values in code**: How to read parameter values from inside your task code, by task type. See [Access parameter values from a task](https://docs.databricks.com/aws/en/jobs/parameter-use.md).

> [!NOTE]
>
> To pass deployment-specific configuration to application code as environment variables instead of parameters, use environment variables for serverless jobs. See [Configure environment variables for serverless jobs](https://docs.databricks.com/aws/en/jobs/environment-variables.md).

## What you can do with parameters

Add parameters to jobs and tasks for advanced use cases including the following:

* Add extensible logic to code assets.
* Conditionalize runs.
* Reference common parameters across multiple tasks.
* Use information generated in one task in another task.
* Reference metadata and state information in the job run.

## Job parameters vs. task parameters

Job parameters are key-value pairs defined at the job level. You can override the default settings for job parameters when you **Run now with different parameters** or trigger a job run using the REST API. Job parameters are pushed down to tasks that use key-value parameters. Other tasks can reference job parameters using dynamic value references.

> [!NOTE]
>
> Any user with `CAN MANAGE RUN` permission or higher on a job can override job parameter values for a manual run using **Run now with different parameters**. A default parameter value is not a security control. To prevent changes, restrict the job's [permissions](https://docs.databricks.com/aws/en/security/auth/access-control/index.md#jobs).

Task parameters are key-value pairs or JSON arrays defined at the task level. Each task type passes task values to the configured code assets differently. For example, notebook tasks use the `dbutils.widgets` submodule, while Python scripts pass values as arguments to the script as if it were being called from the command line. Downstream tasks can reference task parameters from upstream tasks using dynamic value references. See [Access parameter values from a task](https://docs.databricks.com/aws/en/jobs/parameter-use.md).

> [!NOTE]
>
> Some tasks do not have a dedicated **Parameters** field, but allow references to task values or dynamic value references within other fields. See [Examples of parameterized dbt commands](https://docs.databricks.com/aws/en/jobs/tasks/dbt.md#parameters) and [Add branching logic to a job with the If/else task](https://docs.databricks.com/aws/en/jobs/tasks/if-else.md).

## Build workflows using dynamic values

Task parameters set with static values can only be overridden by updating the task definition. Setting a static value for a job parameter is just configuring a default value, which you can override when you **Run now with different parameters** or trigger a job run using the REST API.

Use dynamic value references when defining task parameters to implement patterns such as the following:

* Use a job parameter as the `output_table` for one task and the `input_table` for another.
* Capture the output of a notebook query as a list and loop over it in a **For each** task.
* Creating forking logic based on the number of records processed using an **If/else condition** task.
* Refer to parameters from other tasks.

See [Dynamic value references](https://docs.databricks.com/aws/en/jobs/dynamic-value-references.md).
