# How to get the last RowID during the Actions where new Row was added

**URL:** <https://community.glideapps.com/t/how-to-get-the-last-rowid-during-the-actions-where-new-row-was-added/54126>\
**Category:** Ask for Help\
**Created:** [November 14, 2022, 1:35pm UTC](https://community.glideapps.com/t/how-to-get-the-last-rowid-during-the-actions-where-new-row-was-added/54126 "2022-11-14T13:35:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexey\_Baranov1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexey_baranov1/32/43581_2.png) [@Alexey\_Baranov1](https://community.glideapps.com/u/Alexey_Baranov1)\
**Post date:** [November 14, 2022, 1:35pm UTC](https://community.glideapps.com/t/how-to-get-the-last-rowid-during-the-actions-where-new-row-was-added/54126/1 "2022-11-14T13:35:00Z")

</div>

Hi gliders! 👋  
It seems I already solved such issue but forgot 🤔  
How to get the RowID of just added Row in the native table WITHIN the same Actions after AddRow? 🙄  
SingleColumn does not keep up - it gives out the RowID of the record that was the last BEFORE adding - seems too short time to found the new one((.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [November 14, 2022, 2:08pm UTC](https://community.glideapps.com/t/how-to-get-the-last-rowid-during-the-actions-where-new-row-was-added/54126/2 "2022-11-14T14:08:11Z")

</div>

You can’t. Add Row action doesn’t allow you to retrieve the Row ID within the same action…and you’re right…single column value \> Last will result in an empty value because it happens too quickly.

The only way to get a value from the newly created row would be to use a Glide Form rather than a custom form with Add Row action and then use an “on submit” action to capture the Row ID.

---

<div class="post-metadata">

**Author:** ![Alexey\_Baranov1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexey_baranov1/32/43581_2.png) [@Alexey\_Baranov1](https://community.glideapps.com/u/Alexey_Baranov1)\
**Post date:** [November 15, 2022, 8:41am UTC](https://community.glideapps.com/t/how-to-get-the-last-rowid-during-the-actions-where-new-row-was-added/54126/3 "2022-11-15T08:41:54Z")

</div>

Hi Bob 👋  
Thank you very much for your attention. But it was too hard for me to stop this issue as impossible 😉 So I remembered the way i solved this before as @christoph described it [here](https://community.glideapps.com/t/in-action-can-we-add-a-new-row-in-parent-sheet-get-the-id-of-the-newly-inserted-data-and-insert-that-into-a-new-child-sheet/40931/6).  
It works! By putting an unique ID into the user row, I insert that ID into an user specific column while adding the new row. Having a relation in an User Table looking for that ID in the just added Row, I retrieve it’s Row ID through a lookup.  
Done 😃

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [November 16, 2022, 8:42am UTC](https://community.glideapps.com/t/how-to-get-the-last-rowid-during-the-actions-where-new-row-was-added/54126/4 "2022-11-16T08:42:33Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
