# Send selected items from a repeting group to a database

**URL:** <https://forum.bubble.io/t/send-selected-items-from-a-repeting-group-to-a-database/138902>\
**Category:** Database\
**Created:** [March 1, 2021, 4:28pm UTC](https://forum.bubble.io/t/send-selected-items-from-a-repeting-group-to-a-database/138902 "2021-03-01T16:28:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibra.cisse](https://avatars.discourse-cdn.com/v4/letter/i/ac91a4/32.png) [@ibra.cisse](https://forum.bubble.io/u/ibra.cisse)\
**Post date:** [March 1, 2021, 4:28pm UTC](https://forum.bubble.io/t/send-selected-items-from-a-repeting-group-to-a-database/138902/1 "2021-03-01T16:28:21Z")

</div>

Hello everybody, I’m trying to send the selected items from this repeating group to another database. I followed @romanmg tutorial " How to Create a “Select All” Feature for Repeating Groups"  
Now I’m trying to send those selected items to a new database after pressing the button start and to delete them after the button is pressed.  
How should the workflow look like?  
Thank you.

 ![Capture](https://us1.discourse-cdn.com/bubble/original/3X/1/c/1c8cd6095e1835205e050cce1b13b4cf01293ec5.png)

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [March 1, 2021, 5:22pm UTC](https://forum.bubble.io/t/send-selected-items-from-a-repeting-group-to-a-database/138902/2 "2021-03-01T17:22:59Z")

</div>

When you say new database do you mean your bubble database or an external database?

When you say you want to delete them after the button is pressed, do you mean delete them from the database or remove them from the repeating group or just remove the checkbox?

---

<div class="post-metadata">

**Author:** ![ibra.cisse](https://avatars.discourse-cdn.com/v4/letter/i/ac91a4/32.png) [@ibra.cisse](https://forum.bubble.io/u/ibra.cisse)\
**Post date:** [March 2, 2021, 6:48am UTC](https://forum.bubble.io/t/send-selected-items-from-a-repeting-group-to-a-database/138902/3 "2021-03-02T06:48:35Z")

</div>

Yeah, bubble database and delete them from the database, only the selected items.  
The repeating group has a custom state, so it would be something like " Delete RepeatingGroup Manage’s selected items" but I dont know how to do it

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [March 2, 2021, 7:53am UTC](https://forum.bubble.io/t/send-selected-items-from-a-repeting-group-to-a-database/138902/4 "2021-03-02T07:53:57Z")

</div>

I am still confused then…why would you when after pressing the button start send them to the database and then delete them from the database after the button is pressed?

> [@ibra.cisse](#):
>
> Now I’m trying to send those selected items to a new database after pressing the button start and to delete them after the button is pressed.

---

<div class="post-metadata">

**Author:** ![ibra.cisse](https://avatars.discourse-cdn.com/v4/letter/i/ac91a4/32.png) [@ibra.cisse](https://forum.bubble.io/u/ibra.cisse)\
**Post date:** [March 2, 2021, 8:17am UTC](https://forum.bubble.io/t/send-selected-items-from-a-repeting-group-to-a-database/138902/5 "2021-03-02T08:17:03Z")

</div>

> [@boston85719](#):
>
> …why would you when after pressing the button start send them to the database and then delete them from the database after the bu

Because that repeating group is for products that the customer bought, the new database is for products in the queue and delivered products, does that make sense?

 ![Capture](https://us1.discourse-cdn.com/bubble/original/3X/4/3/431ce3f49438f116c6147cc85247e335cc10f76f.png)

---

<div class="post-metadata">

**Author:** ![jmalmeida](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jmalmeida/32/120123_2.png) [@jmalmeida](https://forum.bubble.io/u/jmalmeida)\
**Post date:** [March 2, 2021, 11:34am UTC](https://forum.bubble.io/t/send-selected-items-from-a-repeting-group-to-a-database/138902/6 "2021-03-02T11:34:42Z")

</div>

If you have records for the products some user has bought, you could create a new ‘Status’ field for that Data Type.

Then, you don’t have to copy and delete those items, but change their ‘Status’, i.e.: ‘Bought’, ‘Queued’, ‘Delivered’, etc.

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [March 2, 2021, 11:37am UTC](https://forum.bubble.io/t/send-selected-items-from-a-repeting-group-to-a-database/138902/7 "2021-03-02T11:37:32Z")

</div>

Yes, and that is exactly the type of information needed to help provide the solution to your query.

And I think @jmalmeida did a good job on giving you the guidance you need now that it is known what you were trying to accomplish.

---

<div class="post-metadata">

**Author:** ![ibra.cisse](https://avatars.discourse-cdn.com/v4/letter/i/ac91a4/32.png) [@ibra.cisse](https://forum.bubble.io/u/ibra.cisse)\
**Post date:** [March 2, 2021, 11:48am UTC](https://forum.bubble.io/t/send-selected-items-from-a-repeting-group-to-a-database/138902/8 "2021-03-02T11:48:13Z")

</div>

thank you for your replies @jmalmeida@boston85719 but I want to keep these items in different databases. The app is more complex than what it seems and I wanted to organize my data like this.  
My only problem now is that I dont know how to send the selected items from the repeating group that are included in the custom state to the other database. Even if I try to do what @jmalmeida is saying I wouldn’t know how to do it because my problem is the Custom state of the product and the selected items.

---

<div class="post-metadata">

**Author:** ![jmalmeida](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jmalmeida/32/120123_2.png) [@jmalmeida](https://forum.bubble.io/u/jmalmeida)\
**Post date:** [March 2, 2021, 11:52am UTC](https://forum.bubble.io/t/send-selected-items-from-a-repeting-group-to-a-database/138902/9 "2021-03-02T11:52:43Z")

</div>

If you have a list of items saved on a custom state you could Schedule an API Workflow on that list and there you create a new thing for every list item, and then delete the original one.

---

<div class="post-metadata">

**Author:** ![ibra.cisse](https://avatars.discourse-cdn.com/v4/letter/i/ac91a4/32.png) [@ibra.cisse](https://forum.bubble.io/u/ibra.cisse)\
**Post date:** [March 2, 2021, 12:04pm UTC](https://forum.bubble.io/t/send-selected-items-from-a-repeting-group-to-a-database/138902/10 "2021-03-02T12:04:07Z")

</div>

> [@jmalmeida](#):
>
> thing for every li

Thank you!  
I found this tutorial by @gregoryjohn, this is what I was trying to achive

[![](https://img.youtube.com/vi/5etSE1po7J0/maxresdefault.jpg "Create and save list selections | Bubble.io Tutorial") ](https://www.youtube.com/watch?v=5etSE1po7J0)
