# Using the write table for real-time inventory management

This example shows how the write table can be used in real-time inventory management.

A company sells physical products and uses Qlik to analyze inventory and orders. When demand suddenly spikes, new orders can exceed stock, slowing order fulfillment.

With the write table, analysts can see products, warehouse quantities, and outstanding orders. When demand surges, they can quickly update how many units to reorder, set priorities, and add notes for the purchasing team. Clicking Place order runs an automation that collects updates, generates a purchase order, and emails it, helping the team respond faster to changing demand.

## Try it yourself

1. [Create a write table](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Visualizations/WriteTable/Create/create.htm) with these columns.

   Write table for real-time inventory management.

   Write table for real-time inventory management.

   Write table for real-time inventory management. ![Write table visualization that has been created for real-time inventory management.](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Resources/Images/write-table_inventory-management_chart.png)

2. [Add a button to trigger an automation](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Visualizations/Button/create-buttons.htm#Execute).

3. Configure the automation and link it to the button. See:

   * [Learn how to configure an automation to connect to the change-stores API.](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Visualizations/WriteTable/Create/create.htm#ExampleAutomateMain)

   * [Learn how to run an automation with custom parameters through the Qlik Sense button.](https://community.qlik.com/t5/Official-Support-Articles/How-to-run-an-automation-with-custom-parameters-through-the-Qlik/ta-p/2496485)

4. Test it: Edit a few rows, click Save, then click the button to see the workflow in action.

Real-time inventory management with the write table.

Real-time inventory management with the write table.

Real-time inventory management with the write table. ![Diagram showing how a company can use the write table for inventory management](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Resources/Images/write-table_inventory-management.png)

## Learn more

* [Write table](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Visualizations/WriteTable/Analyze/write-table.htm)
* [Creating write tables](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Visualizations/WriteTable/Create/create.htm)