# Help needed to link user ID to each order

**URL:** <https://community.glideapps.com/t/help-needed-to-link-user-id-to-each-order/76667>\
**Category:** Ask for Help\
**Created:** [September 27, 2024, 5:29pm UTC](https://community.glideapps.com/t/help-needed-to-link-user-id-to-each-order/76667 "2024-09-27T17:29:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xyz](https://avatars.discourse-cdn.com/v4/letter/x/b5a626/32.png) [@xyz](https://community.glideapps.com/u/xyz)\
**Post date:** [September 27, 2024, 5:29pm UTC](https://community.glideapps.com/t/help-needed-to-link-user-id-to-each-order/76667/1 "2024-09-27T17:29:55Z")

</div>

Hi there,

I’ve been following this video [[https://www.youtube.com/watch?v=bNx9DNWvf8s](https://www.youtube.com/watch?v=bNx9DNWvf8s)], and everything works as explained. However, I’m struggling to link the user ID to each order in the system. I can’t figure out how to associate the user ID with individual orders.

Could someone help me with this? Any guidance or suggestions would be greatly appreciated!

---

<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:** [September 28, 2024, 3:04am UTC](https://community.glideapps.com/t/help-needed-to-link-user-id-to-each-order/76667/2 "2024-09-28T03:04:12Z")

</div>

He seems to collect the user email in there as that’s part of the Stripe payload. Isn’t that enough for you to establish a relation?

---

<div class="post-metadata">

**Author:** ![xyz](https://avatars.discourse-cdn.com/v4/letter/x/b5a626/32.png) [@xyz](https://community.glideapps.com/u/xyz)\
**Post date:** [September 28, 2024, 8:12pm UTC](https://community.glideapps.com/t/help-needed-to-link-user-id-to-each-order/76667/3 "2024-09-28T20:12:12Z")

</div>

The answer is yes, but if the user pays with a different email, I can’t track it, and it will cause confusion. Using the ID ensures that the user’s identity won’t change.

---

<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:** [September 29, 2024, 12:57am UTC](https://community.glideapps.com/t/help-needed-to-link-user-id-to-each-order/76667/4 "2024-09-29T00:57:20Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/6/56c2340ed7c42d665726695e4f96eb36a2f6fe27.jpeg)

In this part where he sets this ID, I think you can combine the user’s ID with the product’s ID, something like: userID||productID.

Then split them out when you collect them later on.

---

<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:** [September 29, 2024, 1:06am UTC](https://community.glideapps.com/t/help-needed-to-link-user-id-to-each-order/76667/5 "2024-09-29T01:06:34Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/a/8a345f894984313e29a9eda1a20690ed61f0ca85.png)

Also, it seems like you can try using this instead of prefilled\_email.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/1/f1cf1f46d181257e4c2a1b1934fc634f2921b72c.png)

Per a comment last year, it seems doing this would prevent users from changing the email.
