Skip to main content

Inputs and parameters

An input is a named value with a type, such as a start date or an account ID, that a job reads when it runs. With inputs, one workflow serves many periods, customers, and environments without a copy.

The Template Inputs dialog of a job, with a type and a default for each input.
The Template Inputs dialog of a job, with a type and a default for each input.

Set the inputs of a workflow​

A job defines its inputs. The workflow can then give them a value.

  1. Open a job and select Inputs. The Template Inputs dialog lists each input of the job by name.
  2. Set the type of each input, and a default if you want one.
  3. Select Save inputs.

To set a value for the whole workflow, select Inputs on the Build tab and open Template overrides. An empty input shows the value that it uses now. Enter a value, and select Done.

The Inputs dialog of a workflow, with the tabs Input groups and Template overrides.
The Inputs dialog of a workflow, with the tabs Input groups and Template overrides.
TypeHolds
StringText, such as an account ID or a region name
Booleantrue or false, for a switch
NumericA number, such as a page size or a rate
DateTimeA point in time, such as the start of a period

A secret is also an input, of the type SecretRef. It holds the key of a stored secret, not the value. See Secrets.

Rules:

  • An input without a default must get a value when the workflow runs.
  • Two jobs can share an input name only with the same type. Otherwise Hypermeter blocks Preview and runs.
  • In an Extract job, you can turn a fixed value into an input. See Convert to input.

DateTime values​

Enter a timestamp with Z for UTC, such as 2026-09-08T00:00:00Z, or open the calendar and select a date and time. The calendar uses UTC, whatever the time zone of your browser.

You can also paste a timestamp with an offset, such as 2026-09-08T01:00:00+02:00. When you select Use UTC or leave the field, it becomes 2026-09-07T23:00:00.000Z, the same moment. To start a period at midnight UTC, set Time in UTC to 00:00.

Use an input in a job​

JobSyntaxWhere
Extract job${{ inputs.<name> }}Request fields, such as the URL and the body
Transform job:input_nameThe SQL
Charge job${{ inputs.<name> }}The time window, such as Start timestamp

A Load job does not read inputs. For functions in expressions, see Template expressions and functions.

Which value a run uses​

When several places give an input a value, the most specific place wins, in this order: the value for one run, the schedule, the input groups of the workflow, the job, the workflow, and the default. For the exact rules, see Inputs and precedence.

  • An empty input shows the value that it will use. The info button beside the input opens Input override details: Active value is the value in use and the place that sets it, Other overrides lists the places that lose, and Defaults lists the defaults of the jobs.
  • A run keeps the values that it started with, and Restart uses them again. See Running and scheduling.
  • Set Preview inputs fixes the values that every Preview uses, not the values of runs. See Set Preview inputs.

Run for another period​

Give the date range a default, such as start_date and end_date, and replace it where needed. The job instructions stay the same.

ToDo this
Process one earlier periodEnter the values when you start the run.
Fix the period for one environmentAttach an input group with the range.
Follow the scheduleLet the schedule put its fire time into a DateTime input, so that a daily run can process yesterday. A run that you start yourself does not get this value.

In a Charge job, the time window must refer to the date inputs, because a fixed timestamp keeps its own period. An input cannot change the fact table or the output table of a published Charge job.

Input groups​

An input group is a reusable set of values, such as the connection details of one environment, that you attach to every workflow that needs them.

  • Manage input groups on the Input groups tab of Environment. Select New input group to create one.
  • To attach a group to a workflow, select Inputs on the Build tab, and select Add input group on the Input groups tab. Choose a group under Existing input groups, or select New input group....
  • To edit a group that is attached to a workflow, select it on the Input groups tab, change the values, and select Save changes.
  • A workflow keeps its groups in an order. When two groups set the same input, the first group wins.
What you seeWhat it meansWhat to do
The result of the save is uncertainThe save may have been applied.Keep your edits and follow the recovery message.
The save is confirmed, but the current view exceeds the supported scopeThe change is saved.Copy the edits that you still need, then select Reload current state.
An input that you cannot access blocks the saveThis happens for every change of the group, also of its name.Remove that input, or replace it with a secret that is available.