Is it possible to force an AppSheet app to behave as "online only" to avoid inventory conflicts?

Hi everyone,

We’re currently developing an AppSheet application focused on warehouse and inventory management, where users request materials and the available stock is updated accordingly.

We understand that AppSheet’s offline capabilities are one of its strengths, and they work great for many of our other business processes. However, in this particular application, we’re looking for the opposite behavior: we’d like to know if it’s possible to make the app behave as if it were strictly online, ensuring users always work with the latest data.

For example:

  • We have 100 pens in stock.

  • User A requests 20, so the stock becomes 80.

  • However, User B hasn’t synchronized yet and still sees 100 available.

  • User B then requests 90, resulting in an inventory discrepancy because the app was working with outdated data.

Another scenario is when two users are working simultaneously:

  • There are 20 bottles in stock.

  • User A requests 10.

  • At nearly the same time, User B requests 12.

  • Since both users started from the same stock value, both transactions may be accepted before either syncs, causing the inventory to go negative or become inconsistent.

We know that disabling “The app can start when offline” prevents the app from opening without an internet connection. However, our understanding is that this does not force the app to constantly work with the latest server data or prevent users from making changes based on a cached copy that hasn’t synchronized yet.

So our questions are:

  • Is there any configuration or best practice to make AppSheet behave as close as possible to a real-time online application?

  • Is it possible to force a sync or validation before users submit inventory transactions?

  • Has anyone implemented a reliable approach to prevent these kinds of inventory race conditions?

  • Or is this simply a limitation of AppSheet’s architecture, meaning that another solution (or additional backend logic) is required for this type of inventory management?

We’d appreciate any recommendations or experiences from others who have built inventory management applications with AppSheet.

Thank you!

i think quick sync is way to go, but i personally cannot run on my app due to security filters (just why appsheet :frowning::frowning: ) etc

or @MultiTech has some formula in action to force sync when press action if i remember correctly

You’ll first need to disable data caching across your App.

Ran it by Gemini. See response linked below:

The strategies recommended are not perfect solutions, but they’ll get you fairly close.

With disablement of data caching out of the way, you’ll need logic to handle concurrent writes/updates on the backend.

Not possible. The app itself is not even aware that it’s online or not.

Yes, and yes (or yes).

In a similar situation, I use a secondary app on a tablet, used by the wearhouse personnel to confirm each request of products with a simple button (meaning “requested stock ready for pickup”).

Users are also notified on mobile. The stock formulas takes into consideration the confirmed orders, and also notifies the managers when a stock product goes under a set “minimum stock” or under the monthly average usage (calculated from previous stock orders of users), whichever comes first

Thank you very much @OptimiX_XcrY for sharing your interesting solution to this issue.

Essential take away from your description is to create another “review gate” before allowing the allocation of the requested quantity to the user.

So if user A requests 20 numbers of Item 1 , user B requests 40 and user C requests 10. If there are 50 quantities of Item 1 in the warehouse, the review person of the warehouse can approve either user A and C’s requests or user B and C’s requests or message user B to reduce its request from 40 to 20.

Is this understanding correct?

That’s correct