# Create rows in different tables, but grab the rowID of first one and put it into the second row

**URL:** <https://community.glideapps.com/t/create-rows-in-different-tables-but-grab-the-rowid-of-first-one-and-put-it-into-the-second-row/44353>\
**Category:** Ask for Help\
**Created:** [July 12, 2022, 8:23pm UTC](https://community.glideapps.com/t/create-rows-in-different-tables-but-grab-the-rowid-of-first-one-and-put-it-into-the-second-row/44353 "2022-07-12T20:23:58Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [July 12, 2022, 10:41pm UTC](https://community.glideapps.com/t/create-rows-in-different-tables-but-grab-the-rowid-of-first-one-and-put-it-into-the-second-row/44353/6 "2022-07-12T22:41:55Z")

</div>

Something like this.

> [@Create a new row and inmediately open in a new windows](https://community.glideapps.com/t/create-a-new-row-and-inmediately-open-in-a-new-windows/43516/2):
>
> The only way to do it would be to do this set up / custom action: Set up: User specific “Temp ID” column Single relation “Relation to ID” column from the Temp ID column to a ID column in the table where the new row is added Custom Action on the Button: Set column action \> unique value to a user specific column Add row action that adds the Temp ID to the ID column along with any other data you want to prepopulate Show Detail Screen \> Relation to ID

---

_[View the full topic](https://community.glideapps.com/t/create-rows-in-different-tables-but-grab-the-rowid-of-first-one-and-put-it-into-the-second-row/44353)._
