Automatic decrease of available products after buying

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!

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”