# Dynamically duplicate x Rows in a table based on criteria

**URL:** https://community.glideapps.com/t/dynamically-duplicate-x-rows-in-a-table-based-on-criteria/62635
**Category:** Ask for Help
**Created:** [June 10, 2023, 7:11pm UTC](https://community.glideapps.com/t/dynamically-duplicate-x-rows-in-a-table-based-on-criteria/62635 "2023-06-10T19:11:47Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [June 10, 2023, 11:28pm UTC](https://community.glideapps.com/t/dynamically-duplicate-x-rows-in-a-table-based-on-criteria/62635/4 "2023-06-10T23:28:55Z")

</div>

> [@How do I duplicate an invoice and line items within it?](https://community.glideapps.com/t/how-do-i-duplicate-an-invoice-and-line-items-within-it/62504/2):
>
> I think you have to use a third-party option like Make to get this to work. You would have to create a JSON structure in the Invoices table to represent the invoice columns, and an array of items that are related to that invoice. Send that structure to Make using a webhook action, and then use a parse JSON module. From the resulting JSON, first, use the Glide API to create an Invoice line with the invoice-level info. You will then get the rowID of the invoice. Create an iterator to iterate t…

I think this can be applied here.

---

_[View the full topic](https://community.glideapps.com/t/dynamically-duplicate-x-rows-in-a-table-based-on-criteria/62635)._
