Skip to content

feat: Add passThrough to preserve fields across nodes #14569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jimmylegendary
Copy link

@jimmylegendary jimmylegendary commented Apr 12, 2025

Summary

This PR adds a new "Passthrough previous node output" feature that allows nodes to automatically include specified fields from previous node outputs in their own outputs. This enables preserving important data throughout a workflow without requiring manual configuration at each step.

The feature works by adding a text field in node settings where users can provide a comma-separated list of field names to be preserved. These fields are then automatically copied from the previous node's output to the current node's output, ensuring data continuity across the workflow.
image

Related Linear tickets, Github issues, and Community forum posts

Review / Merge checklist

Implementation details

  • Added passThrough property to node interfaces
  • Implemented passThrough field processing in the workflow execution engine
  • Added UI settings field for configuring passThrough fields
  • Supports dot notation for nested properties (e.g., "user.name")
  • Works with all executable nodes in workflows

Testing

The feature can be tested by:

  • Adding fields in a node (as shown in the screenshot)
  • Setting up subsequent nodes with passThrough fields listed
  • Running the workflow and confirming that specified fields persist through the node chain

@Mineru98
Copy link

LGTM👍👍👍

@n8n-assistant n8n-assistant bot added community Authored by a community member core Enhancement outside /nodes-base and /editor-ui in linear Issue or PR has been created in Linear for internal review labels Apr 12, 2025
@Joffcom
Copy link
Member

Joffcom commented Apr 12, 2025

Hey @jimmylegendary,

Thanks for the PR, We have created "GHC-1544" as the internal reference to get this reviewed.

One of us will be in touch if there are any changes needed, in most cases this is normally within a couple of weeks but it depends on the current workload of the team.

@nestezup
Copy link

Looks super convenient!! 😊👍

@jeongkpa
Copy link

LGTM

@2innnnn0
Copy link

Looks Good To Me. Thanks Jimmy 👍

@craSH
Copy link
Contributor

craSH commented Apr 13, 2025

This is really nice! The word choice of the feature "bypass" is a bit confusing though, as a Reddit commenter suggested, could we consider using the term "Passthrough"?

https://www.reddit.com/r/n8n/comments/1jxfuqu/comment/mmqa5pn/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

@jimmylegendary jimmylegendary changed the title feat: Add byPass to preserve fields across nodes feat: Add passThrough to preserve fields across nodes Apr 13, 2025
@jimmylegendary
Copy link
Author

This is really nice! The word choice of the feature "bypass" is a bit confusing though, as a Reddit commenter suggested, could we consider using the term "Passthrough"?

https://www.reddit.com/r/n8n/comments/1jxfuqu/comment/mmqa5pn/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Thank you. I changed the name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Authored by a community member core Enhancement outside /nodes-base and /editor-ui in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants