# Create an Auto ID when adding a new student

**URL:** <https://community.glideapps.com/t/create-an-auto-id-when-adding-a-new-student/50268>\
**Category:** Ask for Help\
**Created:** [September 27, 2022, 2:51pm UTC](https://community.glideapps.com/t/create-an-auto-id-when-adding-a-new-student/50268 "2022-09-27T14:51:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OYDApp](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@OYDApp](https://community.glideapps.com/u/OYDApp)\
**Post date:** [September 27, 2022, 2:51pm UTC](https://community.glideapps.com/t/create-an-auto-id-when-adding-a-new-student/50268/1 "2022-09-27T14:51:12Z")

</div>

So I am trying to create an auto ID when I add a new student to a form. I created a relationship to a table with the next Student ID number that I pull in through a relation to the student table. I have a custom action that adds the next ID via set value but it doesn’t seem to work. Looking for help on how to do this. Here is a video overview. I followed the Auto Increment video - ([How do I create an auto-incrementing row number with Glide Tables?](https://community.glideapps.com/t/how-do-i-create-an-auto-incrementing-row-number-with-glide-tables/39572)) everything works fine…except it will not set the value in the ID # column (first row of the student table spreadsheet).

Here is a video of what is happening: [GlideAppIssueOYD.mp4](https://www.screencast.com/t/unFd4TZE)

Glide support responded by telling me the following: Your problem is that at the time of the add you are positioned on the empty row of the newly added column which has not updated that number yet. You will have to come up with a different way to create that unique ID field. Not sure what this means.

Bascially just assigning an ID that starts at 35001 and increments 1 everytime I add a student.

---

<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:** [September 27, 2022, 2:56pm UTC](https://community.glideapps.com/t/create-an-auto-id-when-adding-a-new-student/50268/2 "2022-09-27T14:56:57Z")

</div>

> [@OYDApp](#):
>
> Glide support responded by telling me the following: Your problem is that at the time of the add you are positioned on the empty row of the newly added column which has not updated that number yet. You will have to come up with a different way to create that unique ID field. Not sure what this means.

hmm, that’s interesting.  
There have been a lot of changes in the Glide computational model recently, and it might be possible that method no longer works.

I’ll do some testing with that when I get a chance (probably tomorrow), and will update here with what I find.

---

<div class="post-metadata">

**Author:** ![OYDApp](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@OYDApp](https://community.glideapps.com/u/OYDApp)\
**Post date:** [September 27, 2022, 3:30pm UTC](https://community.glideapps.com/t/create-an-auto-id-when-adding-a-new-student/50268/3 "2022-09-27T15:30:48Z")

</div>

I figured out the answer…I used an add row step instead of set value and it worked! I think the problem before was the row wasn’t yet created when I tried to set the value. Maybe this will help others.
