Skip to content
Share your feedback...
 
Notifications
Clear all

Share your feedback - help us enhance the loop over items node!

19 Posts
15 Users
0 Reactions
6 Views
jake
 jake
(@jake)
Posts: 3
Active Member
Topic starter
 

Hello callin.io community
:wave:

We are exploring ways to enhance our Loop Over Items (Split in Batches) node and would appreciate your input.

  • Have you encountered any issues when setting up loops in callin.io?
  • Does the loop over items node function as you anticipate?
  • Do you have any recommendations for how this node could operate, or any features you feel are missing?

More detailed feedback is highly valuable! Screenshots and linked workflows are always beneficial.

Thank you in advance for assisting us in improving callin.io,
Jake - Senior Product Designer, Nodes Team

 
Posted : 25/03/2025 12:23 pm
BramKn
(@bramkn)
Posts: 19
Active Member
 

Could you please remove the "Replace Me" node? I find it quite frustrating.

Having to delete two items each time a loop node is added (the node itself and the looping arrow/edge) is very inconvenient.

One of the features I incorporated into my community node is the ability to execute the contents of the loop within a subworkflow. Additionally, there's a configurable option for a reduced number of items for manual execution, which then proceeds to the "done" branch after this subset has been processed.

 
Posted : 25/03/2025 12:28 pm
Franz
(@franz)
Posts: 9
Active Member
 
  • Add an option to include an $json.iteration (0, 1, 2, 3, …) with the item.
  • Include an option for __start__ (if this is applicable within the Loop node)
 
Posted : 25/03/2025 12:40 pm
bartv
(@bartv)
Posts: 32
Trusted Member
 

I've often seen that nested loops can cause problems. Perhaps we could look into that as well?

 
Posted : 25/03/2025 1:00 pm
Olek
 Olek
(@olek)
Posts: 8
Active Member
 

Perhaps pinning data (1 batch) for testing. The difficulty would be aligning the batch size, which might change during the development and testing phase. Ignoring the batch size setting would be acceptable for me.

 
Posted : 25/03/2025 1:01 pm
Pat_McDonald
(@pat_mcdonald)
Posts: 2
New Member
 

Yes, you'll need to utilize the $prevNode. If you modify the $prevNode and forget to adjust it accordingly, you might find yourself wondering why it's not functioning correctly. :slight_smile: :laughing: Making the reset process simpler would be beneficial!

 
Posted : 25/03/2025 10:46 pm
Teebu
(@teebu)
Posts: 3
New Member
 

I've encountered a loss of reference when I'm more than 8 nodes deep within a loop. I'm unable to access the {{ $('Loop Over').item.json.url}} item because it doesn't recognize the current item.

 
Posted : 25/03/2025 11:09 pm
solomon
(@solomon)
Posts: 78
Trusted Member
 

I've also encountered a loss of reference in lengthy workflows that include a loop.

I'm unsure how to reproduce this issue, but it has occurred several times.

 
Posted : 26/03/2025 2:11 am
BramKn
(@bramkn)
Posts: 19
Active Member
 

This likely relates to a specific node being used, such as a code or HTTP request node.

Using .item inherently carries risks. If it can't locate the corresponding item because it's missing or has been deleted, it won't function correctly.

Personally, I avoid using .item altogether and stick to all(), first(), and last(), as these methods provide certainty about the data you're retrieving.

For retrieving related items, a merge operation is recommended.

 
Posted : 26/03/2025 4:59 am
James_Pardoe
(@james_pardoe)
Posts: 1
New Member
 

It would be great to have the ability to pin output data. This way, users wouldn't have to go through endless loops just to test their workflow every time.

 
Posted : 26/03/2025 9:45 am
urbanadventurer
(@urbanadventurer)
Posts: 1
New Member
 

I’m so pleased you are addressing this.

1. Nested Loops

Nested loops are sending data to the done branch instead of the loop branch. The workflow below demonstrates this issue. In this simplified setup, both Loop nodes are set to a batch size of 1.

I have been employing workarounds using sub-workflows and Code nodes.

2. Loop Run Index

Could you make the currentRunIndex more accessible? I’ve been using {{ $('Loop over batch').context.currentRunIndex }} to track iterations and manage batches. This is an undocumented feature but proves very helpful.

Thanks,
Andrew

 
Posted : 26/03/2025 11:12 am
solomon
(@solomon)
Posts: 78
Trusted Member
 

Yeah, I’ve discovered several workarounds for this problem.

But I hadn't encountered anyone who doesn't use .item.

That's quite fascinating. I'm not sure how this would function, but I'll do some testing.

 
Posted : 26/03/2025 11:29 am
BramKn
(@bramkn)
Posts: 19
Active Member
 

I began using callin.io before the paired items feature was available, and when it was introduced, it wasn't yet reliable.

Furthermore, I prefer not to use workarounds, as they invariably become more challenging to maintain properly.

 
Posted : 26/03/2025 12:16 pm
Ventsislav_Minev
(@ventsislav_minev)
Posts: 8
Active Member
 

I recall searching for it and finding it in the documentation, but the UI doesn't offer any suggestions for the context within the loop node.

Additionally, incorporating a maximum number of iterations and a break condition would be beneficial.

Edit: I believe you can achieve both using a straightforward JavaScript expression within an If node now, but most users likely wouldn't be able to figure that out.

 
Posted : 26/03/2025 2:00 pm
jake
 jake
(@jake)
Posts: 3
Active Member
Topic starter
 

Thanks a lot for all the feedback received so far, everyone! Many of these points are already on our radar, but it's valuable to hear them reiterated alongside some fresh concepts.

 
Posted : 26/03/2025 2:37 pm
Page 1 / 2
Share: