# Adding items in another table when row in source table exisits

**URL:** <https://community.glideapps.com/t/adding-items-in-another-table-when-row-in-source-table-exisits/68023>\
**Category:** Ask for Help\
**Created:** [November 22, 2023, 9:33am UTC](https://community.glideapps.com/t/adding-items-in-another-table-when-row-in-source-table-exisits/68023 "2023-11-22T09:33:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konstantin\_Demishev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/konstantin_demishev/32/66169_2.png) [@Konstantin\_Demishev](https://community.glideapps.com/u/Konstantin_Demishev)\
**Post date:** [November 22, 2023, 9:33am UTC](https://community.glideapps.com/t/adding-items-in-another-table-when-row-in-source-table-exisits/68023/1 "2023-11-22T09:33:13Z")

</div>

Hi there,

I am building LMS system and want to make some prefillment. For instance,  
once I create a row in the Lesson table, I want to create rows in the Visits table that will include the following:

- Lesson
- Student
- Rank
- Comment  
Such a row should be created for each entity in the Student table where

---

<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:** [November 23, 2023, 12:07am UTC](https://community.glideapps.com/t/adding-items-in-another-table-when-row-in-source-table-exisits/68023/2 "2023-11-23T00:07:00Z")

</div>

So each Student should have a row tied to them in the Visits table, for each Lesson record? May we know what’s your use case here? Do you need to see how Students interact with the Visits record later on?

---

<div class="post-metadata">

**Author:** ![Konstantin\_Demishev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/konstantin_demishev/32/66169_2.png) [@Konstantin\_Demishev](https://community.glideapps.com/u/Konstantin_Demishev)\
**Post date:** [November 23, 2023, 6:11am UTC](https://community.glideapps.com/t/adding-items-in-another-table-when-row-in-source-table-exisits/68023/3 "2023-11-23T06:11:28Z")

</div>

I need to see the record for each student in the Visit table. This record should appear once the lesson is created. Otherwise, the application user should manually add all students (approx. 20-25) to each lesson which is overwhelming.

---

<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:** [November 23, 2023, 11:18pm UTC](https://community.glideapps.com/t/adding-items-in-another-table-when-row-in-source-table-exisits/68023/4 "2023-11-23T23:18:06Z")

</div>

> [@mortar\_board Glide Tutorial - Add, Edit or Delete Multiple Rows (Using Glide's API)](https://community.glideapps.com/t/glide-tutorial-add-edit-or-delete-multiple-rows-using-glides-api/65138/24):
>
> First up, why do you need to add information from rows that have existed already to a new table though? You might have to construct either: An action that passes those rows’ info to [Make.com](http://Make.com) to send a batch HTTP call to the Glide API, to add all rows in the destination table. Construct templates for HTTP calls’ body, then use the Call API action to do the same thing inside the app. Both of those require paid plans. In the first case, a Pro plan. Second case, Business/Enterprise.

I think you can build on this flow, either with Call API (Business/Enterprise) or [Make.com](http://Make.com). Every time a lesson row is created, you use an action to pass all relevant students’ rowIDs and have an API batch call to add rows to the Visits table.

---

<div class="post-metadata">

**Author:** ![Carr\_Lanphier](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carr_lanphier/32/66471_2.png) [@Carr\_Lanphier](https://community.glideapps.com/u/Carr_Lanphier)\
**Post date:** [March 4, 2024, 12:16pm UTC](https://community.glideapps.com/t/adding-items-in-another-table-when-row-in-source-table-exisits/68023/5 "2024-03-04T12:16:58Z")

</div>

Could you share any videos of how you build this functionality in Make?

---

<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:** [March 4, 2024, 11:32pm UTC](https://community.glideapps.com/t/adding-items-in-another-table-when-row-in-source-table-exisits/68023/6 "2024-03-04T23:32:33Z")

</div>

Sorry I don’t have one to share. Can you talk us through your data structure and what you have so far in terms of this flow?
