# Auto generate a OrderID

**URL:** <https://community.glideapps.com/t/auto-generate-a-orderid/17642>\
**Category:** Ask for Help\
**Created:** [October 26, 2020, 10:06pm UTC](https://community.glideapps.com/t/auto-generate-a-orderid/17642 "2020-10-26T22:06:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valentine\_Madzhie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/valentine_madzhie/32/11453_2.png) [@Valentine\_Madzhie](https://community.glideapps.com/u/Valentine_Madzhie)\
**Post date:** [October 26, 2020, 10:06pm UTC](https://community.glideapps.com/t/auto-generate-a-orderid/17642/1 "2020-10-26T22:06:02Z")

</div>

Hi Team

Could you kindly assist how can I auto-generate an Order ID per user to avoid users having the same Order ID

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/3/37261d3a5132780675b85b17e448792c9fa7a623.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/8/8c854d175dd1c1f2ef8a2e5dc1790024317663e0.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:** [October 26, 2020, 11:24pm UTC](https://community.glideapps.com/t/auto-generate-a-orderid/17642/2 "2020-10-26T23:24:57Z")

</div>

In a form, you can use the special value “unique ID” to do this.

---

<div class="post-metadata">

**Author:** ![Valentine\_Madzhie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/valentine_madzhie/32/11453_2.png) [@Valentine\_Madzhie](https://community.glideapps.com/u/Valentine_Madzhie)\
**Post date:** [October 27, 2020, 6:47am UTC](https://community.glideapps.com/t/auto-generate-a-orderid/17642/3 "2020-10-27T06:47:45Z")

</div>

I know I may sound stupid but could you please show how I can do it, please

---

<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:** [October 27, 2020, 7:22am UTC](https://community.glideapps.com/t/auto-generate-a-orderid/17642/4 "2020-10-27T07:22:03Z")

</div>

Here is info on how to use the Unique ID special value.

> **[Glide Docs](https://www.glideapps.com/docs)**
>
> Welcome to Glide Docs, a steadily growing collection of articles and videos on how to use Glide. We can’t wait to see what you build!

> **[Glide Docs](https://www.glideapps.com/docs)**
>
> Welcome to Glide Docs, a steadily growing collection of articles and videos on how to use Glide. We can’t wait to see what you build!

These are also some thoughts I had a while back to create order ID’s. I don’t have an example, but I think a few people have used a version of the idea.

> [@How to create an app for taking Sales Orders](https://community.glideapps.com/t/how-to-create-an-app-for-taking-sales-orders/7048/12):
>
> Here’s a bit of a wild idea. Create a column in your confirmed orders sheet that will contain only email and business. This can be 2 separate column joined with a template, or you can write it to the sheet later already joined from the form button. Doesn’t matter. We just need email and buiness only. Next on your products, sheet follow the instructions here to get a lookup column of the user’s signed in email into the products sheet. [List Relation "Data"](https://community.glideapps.com/t/list-relation-data/7659/5) Next in the products sheet, create…
