Adding all items from a list

Background:

A type in my database includes a list of dates. The length of the list isn’t consistent - some might have 1 date, others could have 100.

What I would like to do:

I would love to copy the entire list to another type - a list, too.

What have I done so far:

I used “newList = originalList’s first item” and “newList = originalList’s item #”. The problem with this is that it’s limited to copying only the numbers in the logic.

What I would have liked to do:

“newList = originalList’s everything”

How do I do this?

So for this you would be best to use a scheduled workflow on a list. So in your normal workflow at the page level you can trigger a backend workflow and pass the necessary parameters through to the backend and then this will loop through the records and isn’t a fixes qty. It will work just the same for a list of 2 as a list of 20.

Here’s the Bubble manual where it goes into some detail on this. But I’d also probably suggest watching a few YouTube video to see how it all works. It’s not difficult to do, but it’s intimidating doing it for the first time :grinning_face_with_smiling_eyes:

https://manual.bubble.io/help-guides/the-bubble-api/scheduled-workflows


Josh @ Support Dept
Helping no-code founders get unstuck fast :rocket:save hours, & ship faster with an expert :man_technologist: on-demand

If you want to do this manually, what you can do is navigate to Data → App data → click on your data type → Export (leave the default settings).

After this you will receive a CSV file in the mail that you can import in your new data type. So, similar as previous: Data-> App data → click on your data type → Upload (select your data type and upload the file from mail).

Hope that helps!

This topic was automatically closed after 70 days. New replies are no longer allowed.