# Automatic decrease of available products after buying

**URL:** <https://community.glideapps.com/t/automatic-decrease-of-available-products-after-buying/39042>\
**Category:** Ask for Help\
**Created:** [February 27, 2022, 9:01pm UTC](https://community.glideapps.com/t/automatic-decrease-of-available-products-after-buying/39042 "2022-02-27T21:01:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakub\_Hort](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jakub_hort/32/38561_2.png) [@Jakub\_Hort](https://community.glideapps.com/u/Jakub_Hort)\
**Post date:** [February 27, 2022, 9:01pm UTC](https://community.glideapps.com/t/automatic-decrease-of-available-products-after-buying/39042/1 "2022-02-27T21:01:41Z")

</div>

Hello,  
I am tryiing to figure out a way how to automatically decrease available products after a buy. Is there a way how to connect “buy button” with number of available products in the sheet? Thanks!

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [February 27, 2022, 9:15pm UTC](https://community.glideapps.com/t/automatic-decrease-of-available-products-after-buying/39042/2 "2022-02-27T21:15:11Z")

</div>

Currently the only way to do this would be to create a shadow copy of the app sales sheet in Google Drive by using an array formula or query formula. This replicated sheet would then be able to be visible in Glide where you’d be able to do relations, rollups, etc to track inventory count.

There are many posts about how to do this in the forum. Just search “App: Sales”
