# Not able to link 2 databases

**URL:** <https://forum.bubble.io/t/not-able-to-link-2-databases/280231>\
**Category:** Need help\
**Created:** [August 28, 2023, 6:00pm UTC](https://forum.bubble.io/t/not-able-to-link-2-databases/280231 "2023-08-28T18:00:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vzutshi22](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vzutshi22](https://forum.bubble.io/u/vzutshi22)\
**Post date:** [August 28, 2023, 6:00pm UTC](https://forum.bubble.io/t/not-able-to-link-2-databases/280231/1 "2023-08-28T18:00:23Z")

</div>

HI  
I am new to Bubble. Trying to learn. I have 2 databases as follows:-

![image](https://us1.discourse-cdn.com/bubble/original/3X/4/0/40a00bc0619287ff63afb849168d2a5dd2789946.png)

![image](https://us1.discourse-cdn.com/bubble/original/3X/d/4/d41cf7ca3b232768aee6a7f8243307cc910d7f9b.png)

On the app I have a button which is Add to Cart. So once a user clicks the button I want data from Product\_desc and Product\_image fields in Product database to be added to Order\_Product\_Desc and Order\_Product\_image fields in Order\_Detail database. I have also created the following workflow on the Add to Cart button:-  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/b/5bcc0ed20cdd6d56af76aaca42c1f97737776137.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/2/3/23a7e49ed2b6679b47d62d4f4fb321cfd2b100bb.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/c/0cd8fecb6b7d54aeac75074136e80d559917b13d.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/2/a246c256653ce29b7d114eaeed9ac284e1254244.png)

Somehow this workflow(Make changes to things) is not working. Kindly advise great bubblers.

Thanks  
Vijay Zutshi

---

<div class="post-metadata">

**Author:** ![nfisher](https://avatars.discourse-cdn.com/v4/letter/n/848f3c/32.png) [@nfisher](https://forum.bubble.io/u/nfisher)\
**Post date:** [August 28, 2023, 6:05pm UTC](https://forum.bubble.io/t/not-able-to-link-2-databases/280231/2 "2023-08-28T18:05:06Z")

</div>

Just to clarify, these are separate data types/tables with in the same app? It would usually make sense to store the Product ID to the transaction, that way it can be referenced from the data base.

---

<div class="post-metadata">

**Author:** ![vzutshi22](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vzutshi22](https://forum.bubble.io/u/vzutshi22)\
**Post date:** [August 28, 2023, 6:06pm UTC](https://forum.bubble.io/t/not-able-to-link-2-databases/280231/3 "2023-08-28T18:06:17Z")

</div>

Thanks for a quick reply. Yes these are 2 separate tables in the app.

Thanks  
Vijay Zutshi

---

<div class="post-metadata">

**Author:** ![vzutshi22](https://avatars.discourse-cdn.com/v4/letter/v/46a35a/32.png) [@vzutshi22](https://forum.bubble.io/u/vzutshi22)\
**Post date:** [August 28, 2023, 6:13pm UTC](https://forum.bubble.io/t/not-able-to-link-2-databases/280231/4 "2023-08-28T18:13:36Z")

</div>

> [@nfisher](#):
>
> store the Product ID to the transaction

So what do you mean by store the Product ID to the transaction. That means I should create a unique identifier of the selected item in the Product database. But the question still remains the same how do I read that info from Product database and add that to the order database.

Thanks  
Vijay Zutshi

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [August 28, 2023, 6:24pm UTC](https://forum.bubble.io/t/not-able-to-link-2-databases/280231/5 "2023-08-28T18:24:12Z")

</div>

Just use a single field to store the Product.

---

<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:** [November 6, 2023, 6:01pm UTC](https://forum.bubble.io/t/not-able-to-link-2-databases/280231/6 "2023-11-06T18:01:13Z")

</div>

Closed on November 6, 2023, 6:01pm UTC

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