Pass outputs between ADF, Databricks and Fabric
Inside each service, use its own mechanism: an ADF pipeline return value, Databricks task values or a Fabric notebook exit value. Between services, make one the parent pipeline, or use an orchestrator. Polysync maps a parent's outputs into the next task's parameters: ADF pipelines and Databricks notebooks send values; Fabric tasks receive them, but Polysync cannot read Fabric outputs.
That difference decides how a chain hands on a watermark, a batch ID or a row count. It comes down to direction: which outputs Polysync can read, and which parameters it can fill.
Inside one service
Azure Data Factory. A child pipeline returns key-value pairs to its parent with the Set Variable activity's pipeline return value, up to 4 MB of JSON. The parent runs the child with Execute Pipeline and "Wait on completion", then reads @activity('Execute Pipeline1').output.pipelineReturnValue.keyName. This works in ADF and Synapse (checked 20 November 2026).
Azure Databricks. Task values pass values between tasks in one job. A Python notebook sets them with dbutils.jobs.taskValues.set(), and any later task that takes parameters can reference {{tasks.<task_name>.values.<value_name>}}. Each value must be valid JSON, at most 48 KiB (checked 20 November 2026).
Microsoft Fabric. A notebook can end with notebookutils.notebook.exit(value). When a Fabric pipeline runs that notebook, the Notebook activity returns the exit value for later activities to use (checked 20 November 2026).
Across services, natively
The native route is to make one service the parent and pass values through its activities. In ADF, the Azure Databricks Job activity runs an existing Databricks job with job parameters, so a value from earlier in the ADF pipeline can go with it. ADF's Databricks Notebook activity returns the notebook's dbutils.notebook.exit() value to the pipeline as @activity('...').output.runOutput, up to 2 MB, in ADF and Synapse. In Fabric, the Invoke pipeline activity can call ADF and Synapse pipelines, and the Azure Databricks activity runs Databricks notebooks and jobs (all checked 20 November 2026).
That keeps the chain in one parent pipeline, which then owns the schedule for every step. For the ADF to Databricks hop alone, running a Databricks job after ADF succeeds compares four options, including how the return value reaches a job parameter.
What Polysync can send and receive
Polysync can pass one task's output into the next task's parameters, across clouds, where the service returns outputs.
| Service and item | Sends values to the next task | Receives values from a parent |
|---|---|---|
| ADF pipeline | Yes: the keys of its pipeline return value | Yes: pipeline parameters |
| Databricks job | Yes: a notebook exit value that is a JSON object | Yes: job parameters |
| Fabric notebook | No | Yes: notebook parameters |
| Fabric Spark Job Definition | No | Yes: command-line arguments, as --name value |
| Fabric pipeline | No | Yes: pipeline parameters |
| Fabric Dataflow Gen2 | No | No |
Two neighbours often sit in the same chain. Polysync passes values into Synapse pipelines but does not read values out; see Synapse pipelines with ADF and Databricks. A Power BI refresh neither sends nor receives values in Polysync: its refresh type is its only setting.
Rules for a Databricks exit value
- Polysync reads it only after a successful run, and only when the task declares Output or Input & Output parameters.
- The value must be a JSON object. Its top-level keys fill the parameters with the same names; anything else is ignored.
- In a multi-task job, return the values from one notebook task.
- Task values are not read. Use them inside the job, and use the exit value to hand values on.
- Reading the value never fails the run.
How the mapping works
- The mapping is set on each dependency, from a parent value to a child parameter. A value goes no further unless you map it.
- Names match regardless of case.
- If a task has several parents, every parent can contribute.
- A parent that returns nothing still passes on the values it was given, so a Fabric task can forward the business date it received.
- Values arrive as text.
- If a value cannot be resolved, the child runs with its own configured values.
- Each run shows the values it received and returned, so you can check what was handed on.
The task documentation covers parameter mapping in the product.
Worked example: a row count and a watermark
A nightly orders chain runs ADF, then Databricks, then Fabric.
- ADF
LoadOrderscopies new rows and sets a pipeline return value with two keys,rowCountandwatermark. - Databricks
CleanOrdersdepends onLoadOrdersOn Success. The dependency mapswatermarkto the job parameterwatermark. The task declaresrowsKeptandpartitionDateas Output parameters, and the notebook ends with the exit value{"rowsKept": "48210", "partitionDate": "2026-11-19"}. - Fabric
PublishOrders, a notebook, depends onCleanOrdersOn Success. The dependency mapspartitionDateto the notebook parameterpartitionDate. - Whatever runs after Fabric cannot receive a new value from
PublishOrdersthrough Polysync. If it needs the publish count, the notebook writes it to a Lakehouse table and the next job reads it there.
rowCount from ADF is never mapped, so it goes no further. Map only what the next job uses.
What does not travel
- Data. Polysync passes named parameter values, not datasets. Pass a path, a date or a watermark, and let the next job read the data itself.
- Fabric and Synapse outputs. Write them to storage and read them in the next step.
- Values into a Power BI refresh or a Fabric Dataflow Gen2. Neither takes input values from Polysync.
Frequently asked questions
Can a Fabric notebook send a value to the next task in Polysync?
No. Inside a Fabric pipeline, the Notebook activity returns the exit value to later activities, but Polysync does not read outputs from Fabric. Write the value to storage, such as a Lakehouse table, and read it in the next step.
Does Polysync read Databricks task values?
No. Polysync reads a notebook exit value that is a JSON object. Task values stay useful between tasks inside one Databricks job.
What happens if a mapped value is missing?
The child runs with its own configured values. The run shows the values it received, so you can see what arrived.
Can Polysync pass a date into a Power BI refresh?
No. Polysync's Power BI refresh tasks take no input values and return none. The refresh type is the only setting on the job.
Can I pass a whole table between ADF, Databricks and Fabric?
Not as a value. Polysync passes named values as text, not data. Pass a reference, such as a path or a partition date, and let each job read the data where it lives.
Microsoft, Azure, Azure Data Factory, Microsoft Fabric, Power BI, Logic Apps and Microsoft Marketplace are trademarks of the Microsoft group of companies. Apache Airflow and Airflow are trademarks of the Apache Software Foundation. Databricks and Lakeflow are trademarks of Databricks, Inc. All other product names are the property of their respective owners and are used for identification only. No endorsement by their owners is implied.