# Create multiple things at a certain time

**URL:** <https://forum.bubble.io/t/create-multiple-things-at-a-certain-time/280787>\
**Category:** Database\
**Created:** [August 31, 2023, 3:23pm UTC](https://forum.bubble.io/t/create-multiple-things-at-a-certain-time/280787 "2023-08-31T15:23:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![giuliano.vita](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@giuliano.vita](https://forum.bubble.io/u/giuliano.vita)\
**Post date:** [August 31, 2023, 3:23pm UTC](https://forum.bubble.io/t/create-multiple-things-at-a-certain-time/280787/1 "2023-08-31T15:23:10Z")

</div>

Hi, I want to save in the database the views of a specific page (that i am getting through plausible API) with the following data fields:

- page name (which is PAGE as data type)
- date
- number of views

I want to set an automatic workflow to run every midnight that creates a row for everyday total page views for every page.

So if i have 50 pages, i need to create 50 new data rows every day. If the next day i add 30 new pages, then the workflow would add 80 new rows.

Can anyone help me with this?

Thank you!

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [August 31, 2023, 3:45pm UTC](https://forum.bubble.io/t/create-multiple-things-at-a-certain-time/280787/2 "2023-08-31T15:45:12Z")

</div>

Somewhere in you’re app you’ll need a list of pages. You could do this by having a ‘Page’ table which just has ‘pageURL’ (text).

Then, have a ‘Page Views’ data type. It has a date, number of views, and Page.

Whenever you create a page, add the page to the database.

Have a recurring daily workflow in the backend. Schedule an API workflow on a list (Do a search for Pages). In that API workflow, get the views for This Page, and create a ‘Page View’ thing which will be saved to the DB.

---

<div class="post-metadata">

**Author:** ![giuliano.vita](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@giuliano.vita](https://forum.bubble.io/u/giuliano.vita)\
**Post date:** [August 31, 2023, 4:06pm UTC](https://forum.bubble.io/t/create-multiple-things-at-a-certain-time/280787/3 "2023-08-31T16:06:22Z")

</div>

I already have a separate data type called pages.

The data type that i want to create is called Analytics and it is connected to the pages through the data field “page”. So I need to create rows for the data type Analytics.

@georgecollier you mean that i should add a backend workflow as “new recurring event”?

How do i tell the system that i want to add a number of multiple things and how do i start the event for the first time?

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [August 31, 2023, 4:29pm UTC](https://forum.bubble.io/t/create-multiple-things-at-a-certain-time/280787/4 "2023-08-31T16:29:02Z")

</div>

> [@giuliano.vita](#):
>
> add a number of multiple things

Schedule API workflow on list

> [@giuliano.vita](#):
>
> how do i start the event for the first time?

Create a button on an admin page that will initiate it
