Hi @Ramagu ,
To group the paragraphs into batches of 20 and send the last batch with the remaining paragraphs, you can use a repeater and the slice function in Make. Here’s an overview of the process:
- Add a repeater before the iterator and divide the total number of paragraphs by the number you want to group them by (20 in your case). This will give you the total number of times you need to process the batches of 20.
- Use the slice function in the iterator to process the groups of 20 paragraphs. If the last batch has fewer than 20 paragraphs, the slice function will automatically stop at the end of the array, and it won’t fill it with empty elements.
Here’s an example of how to do this in Make:
-
Total overview
-
Add a repeater before the iterator and divide the total number of paragraphs by your batch size (In my example my array had a length of 5 and I repeated by 2)
3. Use the slice function in the iterator to process each batch of paragraphs.
If you want to learn more about the slice function, I recommend checking out this article: Mastering the slice function in Make: Understanding zero-based and one-based indexing
I hope this helps! Let me know if you have any further questions.
Best regards,
Glenn - Callinetic