# Convert Line Items into Individual Rows based on qty

**URL:** <https://community.glideapps.com/t/convert-line-items-into-individual-rows-based-on-qty/79564>\
**Category:** Ask for Help\
**Created:** [January 27, 2025, 9:48am UTC](https://community.glideapps.com/t/convert-line-items-into-individual-rows-based-on-qty/79564 "2025-01-27T09:48:54Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [January 31, 2025, 8:46am UTC](https://community.glideapps.com/t/convert-line-items-into-individual-rows-based-on-qty/79564/8 "2025-01-31T08:46:38Z")

</div>

I think JavaScript is definitely the way to go here. I would prepare an input that represents all items that you need to be added, alongside the quantity, and then run it through JS to get the output.

Next, run an API call step and I think you’re good to go.

---

_[View the full topic](https://community.glideapps.com/t/convert-line-items-into-individual-rows-based-on-qty/79564)._
