# Glide Scheduled Workflows

**URL:** https://community.glideapps.com/t/glide-scheduled-workflows/80306
**Category:** Ask for Help
**Created:** [February 24, 2025, 11:46pm UTC](https://community.glideapps.com/t/glide-scheduled-workflows/80306 "2025-02-24T23:46:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)
#### Post date: [February 24, 2025, 11:46pm UTC](https://community.glideapps.com/t/glide-scheduled-workflows/80306/1 "2025-02-24T23:46:11Z")

</div>

I have a “Tasks” table, where each task has multiple sub-tasks stored in a separate table. The sub-tasks are linked to tasks using the task’s RowID.

I automated the creation of tasks each day, but how can I also create the related sub-tasks automatically and link them to the newly created tasks RowID?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/d/bdde927f2b4f517ed4690cccbc270fab324e14f5.png)

---

<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: [February 25, 2025, 12:15am UTC](https://community.glideapps.com/t/glide-scheduled-workflows/80306/2 "2025-02-25T00:15:18Z")

</div>

When you loop through the Tasks table, you should be able to retrieve the task ID.

Add a loop through the Sub-tasks table, filtering by Task ID is equal to the “Looped Task” ID.

Then, add rows to the Sub-tasks table, using the “Newly created Task” ID.

Is that what you want to do? Like duplicating the package of tasks & sub-tasks?

---

<div class="post-metadata">

### Author: ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)
#### Post date: [February 25, 2025, 1:01am UTC](https://community.glideapps.com/t/glide-scheduled-workflows/80306/3 "2025-02-25T01:01:02Z")

</div>

But how can I retrieve the task RowID of newly created task? I want to be able to create a new task at a certain interval which I already managed, but I am stuck with creating the sub-tasks and link them through the RowID of newly created Tasks

> [@ThinhDinh](#):
>
> Is that what you want to do? Like duplicating the package of tasks & sub-tasks?

This is what my database looks like:

Tasks Table:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/d/ed5bd79ea7116069a8ad80706dcd184ec89211f3.png)

Sub-Tasks:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/b/9bb5f947acca128e9bc409f1c88124a61e5db1c4.png)

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [February 25, 2025, 3:34am UTC](https://community.glideapps.com/t/glide-scheduled-workflows/80306/4 "2025-02-25T03:34:53Z")

</div>

Isn’t there an option to retrieve the new RowID? Not sure how that works with scheduled workflows and loops, but it’s there for user initiated workflows.

 ![1000004713](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/4/04bf3b963ee4a6568d8c90ecfd1bf0247a7398cb.png)

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [February 25, 2025, 4:00am UTC](https://community.glideapps.com/t/glide-scheduled-workflows/80306/5 "2025-02-25T04:00:16Z")

</div>

Unfortunately that option isn’t there with backend workflows.

The way I’ve handled this situation is as follows:

- Create the parent row with a normal add row action via a user initiated workflow
- Write the parent RowID to a User Specific column
- Feed that into a series of JSON columns that define add row mutations for the child rows
- Back in the user initiated workflow, wait until the parent RowID is not empty, then send the JSON body to a webhook triggered workflow, which in turn calls the Glide API to add the child rows.

Not sure if the above approach will work for Hassan, as I understand he wants the whole thing to run on a schedule.
