Create several identical connected records
Turn a quantity into that many connected records, for example 5 order items for a quantity of 5, with a workflow loop or the Record Looper pipe.
- Verified Nov 17, 2026
- Classic builder
When a customer orders 5 headphones, you may want 5 separate order item records, each connected to the order, instead of one record with a quantity of 5. A workflow can do this with a loop. The Record Looper pipe is the older way and does the same through the REST API.
Create the records with a workflow #
A workflow loop runs its steps once for each item in a list. Workflows have no "repeat N times" setting, so first make a list with one item per record you want, then loop over it.
- Start from the order Create a workflow on the table that holds the quantity, for example Order Items or Orders, with the trigger you need, such as a record being created.
- Make the list Add a Run Custom Code step that reads the quantity from the workflow's record and returns a list with that many items. See Running custom JavaScript.
- Add a loop Add Loop / Bulk Action. Under Items from, choose the result of the Run Custom Code step.
- Create a record each time Inside the loop, add Create Record (or Create Connected Record) for the order items table. Connect each new record to the order and set the product and a quantity of 1 under Set field values.
- Test it Run the workflow on a record with a small quantity, such as 3, and check that 3 connected records appear.
Use the Record Looper pipe #
Apps that already use the Record Looper pipe can keep it. Its call creates a number of identical records in one table, setting the fields you name to the values you give. It calls the Tadabase REST API, so it needs an API key.
- Create an API key Open Settings > API Keys, click Generate New Key, turn on Allow Updates and click Save. See Create and manage API keys.
- Install the pipe In the builder's left menu, click Pipes > Install Pipe, search for
Record Looper, click it and click Install. - Add the API credentials In the installed pipe, open Global Parameters, enter your API key details and click Save.
- Check the call Open API Calls to see the call and its parameters: the number of records, the table, and pairs of field slug and value. If the pipe is configurable, you can edit its request there to match your table.
- Run it from a workflow Add Trigger Pipe, choose the call under Pipe Method, and set the Parameters, for example the number of records from the Quantity field.
- Field slugs: to see each field's slug, such as
field_46, open the table's fields in the Data Builder and turn on Show Field Slug. - Connection fields: set the value to the record ID of the record to connect to, not its display value.
Was this page helpful?
Something wrong or missing on this page? Tell us.