Workflow Loop: Loop target > sub-menu is empty for HTTP Request data (v1.8.18)

Hello everyone,

I am building a workflow to import data from my external API (ERP) into a NocoBase collection, but I am stuck in the Loop node.

My NocoBase Version: v1.8.18

My Workflow Setup:

  1. Trigger: Post-action event (from a Search Form).
  2. Node 1: Delete record (This works fine).
  3. Node 2: HTTP request (GET)
  • This calls my API (e.g., .../api/projects?pjName=...).
  • This works perfectly! I have checked the Execution History, and the node shows Status: ✓ Resolved. The “Node result” clearly shows the JSON array data: [ { "pjName": "Project A", "bpnName": "Customer B" }, ... ]
  1. Node 3: Loop
  • The Loop target is correctly set to the output from the previous node: Node result / HTTP request / Data.
  1. Node 4: Create record (Inside the Loop)
  • This action is correctly placed inside the loop.

The Problem:

Inside Node 4 (Create record), I try to map the data from the API to my collection fields (e.g., mapping “PJ Name” from the API to the “PJ Name” field in my collection).

When I use the variable picker:

  1. I go to: Scope variables
  2. I select: Loop >
  3. I select: Loop target >

…But the sub-menu for Loop target is EMPTY.

It does not show the fields from my API (like pjName, bpnName, psNumber, etc.), even though I have successfully run the workflow and the execution history proves that the HTTP request (Node 2) received this data.

What I have tried:

  • I have run the workflow many times, but the sub-menu never appears.
  • I have refreshed the workflow editor page after running it.
  • I tried manually typing {{$item.pjName}} and {{$loop.pjName}}, but they just become empty tags.

Is this a known bug in v1.8.18? How can I access the current loop item’s data (e.g., pjName) if the UI picker is broken?

Thank you for your help!

Please add a “JSON variable mapping” node after the “http” node to map and parse the data of the http node. Use the “JSON variable mapping” node object for looping nodes.

1 Like