# Using unique ID in repeating group

**URL:** <https://forum.bubble.io/t/using-unique-id-in-repeating-group/255284>\
**Category:** Need help\
**Created:** [April 5, 2023, 3:04am UTC](https://forum.bubble.io/t/using-unique-id-in-repeating-group/255284 "2023-04-05T03:04:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick.dingler](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nick.dingler](https://forum.bubble.io/u/nick.dingler)\
**Post date:** [April 5, 2023, 3:04am UTC](https://forum.bubble.io/t/using-unique-id-in-repeating-group/255284/1 "2023-04-05T03:04:31Z")

</div>

HI!

The goal is to create a table that displays upcoming doctors appointments. Currently, there is a form that creates “doctors appointments” in the “doctors appointments” data type. There is also a User field “scheduled appointments” that is filled with the unique ID of the “doctor appointments” that were scheduled by the current user.

How can I use this to display upcoming appointments in a repeating group?

-Nick

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [April 5, 2023, 3:47am UTC](https://forum.bubble.io/t/using-unique-id-in-repeating-group/255284/2 "2023-04-05T03:47:53Z")

</div>

You don’t attach “the unique ID of the doctor appointments”, you literally attach the Doctor Appointments themselves to whatever object you want. Why is this mistake so pervasive? It’s almost like nobody does the [Bubble Lessons](https://bubble.io/lessons) or [Crash Courses](https://bubble.io/academy).

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [April 5, 2023, 9:42am UTC](https://forum.bubble.io/t/using-unique-id-in-repeating-group/255284/3 "2023-04-05T09:42:50Z")

</div>

> [@keith](#):
>
> Why is this mistake so pervasive?

Relational Database Foreign Keys innit.

And that Bubble puts the field types for objects down at the bottom of the list so you see text first?

> [@nick.dingler](#):
>
> There is also a User field “scheduled appointments” that is filled with the unique ID of the “doctor appointments” that were scheduled by the current user.

Exactly what Keith says. Make it a list (tick the box) of Doctors Appointments (scroll down until you find the data types that are named after your tables).

---

<div class="post-metadata">

**Author:** ![nick.dingler](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nick.dingler](https://forum.bubble.io/u/nick.dingler)\
**Post date:** [April 6, 2023, 2:15pm UTC](https://forum.bubble.io/t/using-unique-id-in-repeating-group/255284/4 "2023-04-06T14:15:38Z")

</div>

I had a grouping issue unfortunately…after rebuilding I was able to get it working! Thank you both!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [June 14, 2023, 3:04am UTC](https://forum.bubble.io/t/using-unique-id-in-repeating-group/255284/5 "2023-06-14T03:04:41Z")

</div>

Closed on June 14, 2023, 3:04am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
