# Transfer products between different warehouses?

**URL:** <https://community.glideapps.com/t/transfer-products-between-different-warehouses/81268>\
**Category:** Ask for Help\
**Tags:** api, actions\
**Created:** [April 10, 2025, 3:14pm UTC](https://community.glideapps.com/t/transfer-products-between-different-warehouses/81268 "2025-04-10T15:14:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehmet\_Karaca](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mehmet_karaca/32/84984_2.png) [@Mehmet\_Karaca](https://community.glideapps.com/u/Mehmet_Karaca)\
**Post date:** [April 10, 2025, 3:14pm UTC](https://community.glideapps.com/t/transfer-products-between-different-warehouses/81268/1 "2025-04-10T15:14:46Z")

</div>

Hi everyone,  
I’m building a work order and warehouse management app, and I need help with transferring products between warehouses.

Here’s how my setup looks:

- I have a **Products table** (just a list of products, no stock info here).
- I have a **Stock table** that shows stock per warehouse (if a warehouse has zero stock, it doesn’t appear in this table).
- I also have other tables for work order management.

**My goal:**  
Let’s say I want to transfer _iPhone_ from **Warehouse A** to **Warehouse B**.  
I want the logic to work like this:

1. **Check** if Warehouse B exists in the Stock table.

- If it doesn’t exist, create a new row for it.
- If it does exist but has no iPhones, add a new row for iPhones in that warehouse.
- If it already has iPhones, just increase the quantity (Set column value).

1. At the same time, **subtract the same quantity** from Warehouse A’s iPhone stock.
2. The system should not allow the transfer if Warehouse A doesn’t have enough stock (no negative stock allowed).

I’m not sure what’s the best structure or where I should run this logic from. Any advice would be appreciated!

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [April 11, 2025, 12:50pm UTC](https://community.glideapps.com/t/transfer-products-between-different-warehouses/81268/2 "2025-04-11T12:50:47Z")

</div>

Here is a related thread that you might like:

> [@Transfer number of products from one warehouse to another](https://community.glideapps.com/t/transfer-number-of-products-from-one-warehouse-to-another/71938):
>
> Hello I just started with glideapp and I’m building a custom inventory management app. I am trying to create the option for transfering goods/products from one warehous to another. Please any sugestion? I already created the list of products, multi wearhouses, and need to register transfer products from main warehous to the others, but could not find the relation as it does not allow me to create a form which would allow me to chose the product, output from one warehouse, and than input to an…
