Skip to content
AI Agents

Allowlist Field Projection with Dropped and Missing Path Report

9 nodes 7 0 Manual trigger
Download

Read the execution path horizontally, with supporting AI nodes below. Layout changes affect this preview only; the download stays unchanged.

Loading workflow…

Workflow Description

For each record, the workflow builds a brand-new object containing only the dotted paths listed in an allowlist Set node, preserving nesting and never mutating the source. It reports droppedPaths (every non-allowed leaf path) and missingPaths (allowed paths absent from the record), and proves immutability via a before/after comparison. An IF node separates drifting items from clean ones, tags them with status drift or clean, and merges them into one output. The demo includes four fictional records covering valid and invalid cases.

How it works

  1. 1.Manual Trigger starts execution
  2. 2.Code node emits four fictional records
  3. 3.Set node adds allowedPaths while keeping fields
  4. 4.Code node builds new projected object and computes droppedPaths, missingPaths, driftCount, originalUnchanged
  5. 5.IF routes driftCount>0 to drift, others to clean
  6. 6.Set nodes add status, Merge appends, NoOp final output

Use cases

  • Stabilize payload shape before downstream steps
  • Detect unexpected new fields from a source
  • Shrink large payloads

Requirements

  • No credentials needed
  • Edit allowedPaths in Define Allowed Paths
  • Replace the sample node with your real data source

Setup and testing in n8n

  1. Import the JSON into n8n
  2. Click Execute Workflow
  3. Verify R-1001 is clean and others are drift
  4. Add a new field to a record and check droppedPaths
  5. Remove an allowed field and check missingPaths

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Manual Trigger Code Set If Merge No Op

Details

Trigger Manual trigger
Nodes 9
Apps 6
Views 7
Downloads 0

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (9)

/

Run Demo

Manual Trigger

#1

Emit Sample Records

Code

#2

Define Allowed Paths

Set

#3

Project Allowlist Into New Object

Code

#4

Has Drift?

If

#5

Mark Drift

Set

#6

Mark Clean

Set

#7

Combine Routes

Merge

#8

Projected Output

No Op

#9

Note Setup

Sticky Note

#10

Note Logic

Sticky Note

#11
Stay in the loop

Fresh workflows, straight to your inbox

Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.

  • New workflows
  • Clear overviews
  • Setup guides

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime