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:
- Trigger:
Post-action event(from a Search Form). - Node 1:
Delete record(This works fine). - 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 arraydata: [ { "pjName": "Project A", "bpnName": "Customer B" }, ... ]
- Node 3:
Loop
- The
Loop targetis correctly set to the output from the previous node:Node result / HTTP request / Data.
- 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:
- I go to:
Scope variables - I select:
Loop > - 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!