Skip to content

Variable Activities

Activities that mutate pipeline variables.

fabric_data_pipelines.SetVariable

Bases: Activity

Set the value of a pipeline variable.

Example::

from fabric_data_pipelines import SetVariable, expr

set_var = SetVariable(
    name="Set row_count",
    variable_name="row_count",
    value=expr.activity_output("lookup", "count"),
)

fabric_data_pipelines.AppendVariable

Bases: Activity

Append a value to an array pipeline variable.

Example::

from fabric_data_pipelines import AppendVariable

append = AppendVariable(
    name="collect_id",
    variable_name="ids",
    value="@item().id",
)